Skip to content

Commit

Permalink
+ Compress ci
Browse files Browse the repository at this point in the history
  • Loading branch information
meloalright committed Oct 22, 2023
1 parent 242ffa6 commit 79cc4aa
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Rust
name: CI

on:
push:
Expand Down
36 changes: 36 additions & 0 deletions .github/workflows/Compress.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Compress

on:
push:
tags:
- '*.*.*'
pull_request:

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: "Compress Source Code"
if: true
uses: master-atul/tar-action@v1.0.2
with:
command: c
cwd: "./"
files: "three_body_e2021"
outPath: "${{ runner.temp }}/3body-lang-${{ steps.vars.outputs.sha_short }}.tar.gz"

- name: "Release Source Code"
uses: pragmatrix/release-action@exp
with:
owner: rustq
repo: 3body-lang
tag: ${{ env.RELEASE_VERSION }}
allowUpdates: true
replacesArtifacts: true
artifacts: "${{ runner.temp }}/3body-lang-${{ steps.vars.outputs.sha_short }}.tar.gz"
artifactErrorsFailBuild: true
token: ${{ secrets.GITHUB_TOKEN }}
prerelease: true

0 comments on commit 79cc4aa

Please sign in to comment.