Created
March 17, 2020 16:43
-
-
Save cesalberca/a5feadb96c0b23be846aac6533f124fe to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Deploy | |
| on: | |
| push: | |
| tags: | |
| - '*' | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v1 | |
| - uses: actions/setup-node@v1 | |
| with: | |
| node-version: '12.16.1' | |
| - uses: actions/cache@v1 | |
| with: | |
| path: ~/.npm | |
| key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | |
| restore-keys: | | |
| ${{ runner.os }}-node- | |
| - name: install | |
| run: npm ci | |
| - name: build | |
| run: npm run build | |
| - name: deploy | |
| uses: JamesIves/[email protected] | |
| with: | |
| ACCESS_TOKEN: ${{ secrets.TOKEN }} | |
| BASE_BRANCH: dev | |
| BRANCH: master | |
| FOLDER: dist | |
| CLEAN: true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment