-
Notifications
You must be signed in to change notification settings - Fork 0
29 lines (25 loc) · 737 Bytes
/
deploy.yml
File metadata and controls
29 lines (25 loc) · 737 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
name: Deploy
on:
push:
branches:
- production
jobs:
build-deploy:
runs-on: ubuntu-latest
env:
LASTFM: ${{ secrets.LASTFM }}
NODE_ENV: production
steps:
- name: Checkout️
uses: actions/checkout@v2.3.1
- name: Init git config
run: |
git remote set-url origin https://${{ secrets.CONFIG_GHPAGES }}@github.com/${{ secrets.CONFIG_NAME }}/simon-instance.github.io.git
git config --global user.email ${{ secrets.CONFIG_EMAIL }}
git config --global user.name ${{ secrets.CONFIG_NAME }}
- name: Deploy to gh-pages branch
run: |
npm i
npm run build
rm -f ./build/index.js.map
npm run deploy