-
-
Notifications
You must be signed in to change notification settings - Fork 2
47 lines (42 loc) · 1.38 KB
/
Copy pathrelease.yml
File metadata and controls
47 lines (42 loc) · 1.38 KB
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Build and Release
on:
push:
tags:
- 'v*.*.*'
- 'force-release'
jobs:
build-and-release:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2
- name: Setup node 🔨
uses: actions/setup-node@v2
with:
node-version: 14
registry-url: https://registry.npmjs.org/
- name: Install and Build 🔧
run: |
yarn install
yarn build:firefox
yarn build:github
cp dist/anime-tracker/webapp/index.html dist/anime-tracker/webapp/404.html
- name: Package 📦
run: |
yarn package
echo "::set-output name=PACKAGE_NAME::$(ls -d anime_tracker-*.zip)"
id: package
- name: Upload to release 💾
uses: meeDamian/github-release@2.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
files: ${{ steps.package.outputs.PACKAGE_NAME }}
gzip: folders
allow_override: true
- name: Deploy to github pages 🚀
uses: JamesIves/github-pages-deploy-action@3.6.2
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: dist/anime-tracker/webapp # The folder the action should deploy.
CLEAN: true # Automatically remove deleted files from the deploy branch