diff options
author | NoDRM <[email protected]> | 2023-06-25 17:22:51 +0200 |
---|---|---|
committer | NoDRM <[email protected]> | 2023-06-25 18:21:20 +0200 |
commit | 9ae77c438fcc6d47ae882abd8f7000bea90c4b50 (patch) | |
tree | 5f21323493e78571e3f48082b36225056810635f /.github | |
parent | abc5de018ef84f2362f7b67a833142b391e235d2 (diff) |
Update CI to create an automatic beta release
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/main.yml | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 899539a..01e5bc9 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -9,8 +9,10 @@ jobs: steps: - name: Checkout uses: actions/checkout@v2 + - name: Package run: python3 make_release.py + - name: Upload uses: actions/upload-artifact@v2 with: @@ -18,3 +20,45 @@ jobs: path: | DeDRM_tools_*.zip DeDRM_tools.zip + + - name: Delete old release + uses: cb80/delrel@latest + with: + tag: autorelease + token: ${{ github.token }} + + - name: Delete old tag + uses: dev-drprasad/[email protected] + with: + tag_name: autorelease + github_token: ${{ github.token }} + delete_release: true + + - name: Prepare release + run: cp DeDRM_tools.zip DeDRM_alpha_${{ github.sha }}.zip + + - name: Auto-release + id: autorelease + uses: softprops/action-gh-release@v1 + with: + tag_name: autorelease + token: ${{ github.token }} + name: Automatic alpha release with latest changes + body: | + This release is automatically generated by Github for each commit. + + This means, every time a change is made to this repo, this release will be updated to contain an untested copy of the plugin at that stage. This will contain the most up-to-date code, but it's not tested at all and may be broken. + + Last update based on Git commit ${{ github.sha }}. + prerelease: true + draft: true + files: DeDRM_alpha_${{ github.sha }}.zip + + - name: Make release public + uses: irongut/[email protected] + with: + token: ${{ github.token }} + id: ${{ steps.autorelease.outputs.id }} + draft: false + prerelease: true + |