-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (31 loc) · 836 Bytes
/
main.yaml
File metadata and controls
33 lines (31 loc) · 836 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
30
31
32
33
name: Main
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
- name: setup node
uses: actions/setup-node@v1
with:
node-version: 12
- name: Install dependencies
run: npm ci
- name: building the files
run: npm run build
env:
SECRET_KEY: ${{ secrets.SECRET_KEY }}
PUBLIC_KEY: ${{ secrets.PUBLIC_KEY }}
- name: ziping the files
uses: papeloto/action-zip@v1
with:
files: build/
dest: markupshare.zip
- name: releasing the files
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: markupshare.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}