diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index db5524c..717af20 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -1,4 +1,4 @@ -name: Rust +name: CI on: push: diff --git a/.github/workflows/Compress.yml b/.github/workflows/Compress.yml new file mode 100644 index 0000000..5c54e4e --- /dev/null +++ b/.github/workflows/Compress.yml @@ -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