-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (40 loc) · 1.33 KB
/
release.yml
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
name: Release Pack
# You may pin to the exact commit or the version.
# uses: subosito/flutter-action@48cafc24713cca54bbe03cdc3a423187d413aafa
on:
push:
branches: [ main ]
jobs:
retrievingVersion:
runs-on: ubuntu-latest
outputs:
version: ${{ steps.versionstep.outputs.version }}
steps:
- uses: actions/checkout@v3
- id: set_var
run: |
content=`cat ./main/config.jet`
# the following lines are only required for multi line json
content="${content//'%'/'%25'}"
content="${content//$'\n'/'%0A'}"
content="${content//$'\r'/'%0D'}"
# end of optional handling for multi line json
echo "::set-output name=packageJson::$content"
- run: |
VERSION=${{fromJson(steps.set_var.outputs.packageJson).buildVersion}}
echo "VERSION=${VERSION}" >> $GITHUB_ENV
name: Retrieve Release Version
- run: mkdir -p outputs
- run: echo "${VERSION}"
- name: Zipping windows release
working-directory: main
run: |
zip -r ../outputs/JPP4.zip *
- name: Upload release onto Github
uses: ncipollo/release-action@v1
with:
artifacts: 'outputs/JPP4.zip'
token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ env.VERSION }}
prerelease: false
allowUpdates: true