Skip to content

Commit

Permalink
move to github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
radames committed Aug 2, 2021
1 parent 71c9b24 commit ddab6b7
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 22 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: github pages

on:
workflow_dispatch:
push:
branches:
- webpack

jobs:
deploy:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- name: Setup Node
uses: actions/setup-node@v2-beta
with:
node-version: '14.x'

- name: Get yarn cache
id: yarn-cache
run: echo "::set-output name=dir::$(yarn cache dir)"

- name: Cache dependencies
uses: actions/cache@v2
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- run: yarn install --frozen-lockfile
- run: yarn build

- name: Deploy GH-Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist
allow_empty_commit: true
keep_files: false
force_orphan: true
20 changes: 0 additions & 20 deletions .travis.yml

This file was deleted.

2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

## Automatic Build

[![Build Status](https://travis-ci.org/youthradio/NeverAgain-Front.svg?branch=webpack)](https://travis-ci.org/youthradio/NeverAgain-Front)

1. If the build status is green passing, then a final static build with the website is pushed to [gh-pages](https://github.com/youthradio/NeverAgain-Front/tree/gh-pages)
1. Every new push, via github desktop or via github web is hooked up with [travis-ci](https://travis-ci.org/youthradio/NeverAgain-Front).

Expand Down

0 comments on commit ddab6b7

Please sign in to comment.