Skip to content

Commit 95f2ffb

Browse files
committed
chore: add git workflow for releasing zip
1 parent 92eff46 commit 95f2ffb

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

.github/workflows/zip.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: create-starter-zip
2+
run-name: Creating Starter Zip
3+
on: [push]
4+
jobs:
5+
zip:
6+
if: startsWith(github.ref, 'refs/tags/')
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v3
10+
- uses: actions/setup-node@v3
11+
with:
12+
node-version: '18'
13+
14+
- uses: actions/checkout@v2
15+
with:
16+
fetch-depth: 0
17+
ref: main
18+
- run: npm install --force
19+
- name: Zip Folder
20+
run: zip -r flights42.zip . -x "*.zip"
21+
22+
- name: Release
23+
uses: softprops/action-gh-release@v1
24+
with:
25+
files: '*.zip'
26+
env:
27+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)