Skip to content

Commit 563d54a

Browse files
committed
+ Compress ci
1 parent 242ffa6 commit 563d54a

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/Compress.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Compress
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- '0\.*\.*'
8+
pull_request:
9+
branches:
10+
- main
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- uses: actions/checkout@v2
18+
19+
- name: "Compress Source Code"
20+
if: true
21+
uses: master-atul/tar-action@v1.0.2
22+
with:
23+
command: c
24+
cwd: "./"
25+
files: "three_body_e2021"
26+
outPath: "${{ runner.temp }}/3body-lang-${{ steps.vars.outputs.sha_short }}.tar.gz"
27+
28+
- name: "Release Source Code"
29+
uses: pragmatrix/release-action@exp
30+
with:
31+
owner: rustq
32+
repo: 3body-lang
33+
tag: ${{ env.RELEASE_VERSION }}
34+
allowUpdates: true
35+
replacesArtifacts: true
36+
artifacts: "${{ runner.temp }}/3body-lang-${{ steps.vars.outputs.sha_short }}.tar.gz"
37+
artifactErrorsFailBuild: true
38+
token: ${{ secrets.GITHUB_TOKEN }}
39+
prerelease: true

0 commit comments

Comments
 (0)