-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Hey I can use those action shere. duh
- Loading branch information
Showing
1 changed file
with
23 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,7 +53,6 @@ jobs: | |
- name: Setup VERSION file for Nightly | ||
if: ${{ github.ref == 'refs/heads/main' && github.repository_owner == 'baconpaul' }} | ||
run: | | ||
echo Nightly-`date +"%Y-%m-%d"` > VERSION | ||
- name: Setup VERSION file for Release | ||
|
@@ -141,59 +140,40 @@ jobs: | |
runs-on: ubuntu-latest | ||
needs: [build_plugin] | ||
steps: | ||
- uses: actions/download-artifact@v4 | ||
with: | ||
path: artifacts | ||
- name: Show Installer Directory | ||
run: | | ||
ls -R artifacts | ||
- name: Delete old release assets | ||
uses: mknejp/delete-release-assets@v1 | ||
- name: Upload to Nightly | ||
uses: surge-synthesizer/sst-githubactions/upload-to-release@main | ||
with: | ||
token: ${{ github.token }} | ||
tag: Nightly # This may also be of the form 'refs/tags/staging' | ||
assets: '*' | ||
- name: Upload release assets | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
file: artifacts/**/**/** | ||
tag: Nightly | ||
file_glob: true | ||
- name: Tag Repo | ||
uses: richardsimko/[email protected] | ||
reuse_tag: true | ||
create_tag: false | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Post to Discord | ||
uses: surge-synthesizer/sst-githubactions/discord-release-notify@main | ||
with: | ||
tag_name: Nightly | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
webhook: ${{ secrets.DISCORD_WEBHOOK }} | ||
tag: Nightly | ||
title: "A New Six Sines Nightly is Available" | ||
subtitle: "Have fun!" | ||
|
||
publish-plugin-release: | ||
name: Publish Release | ||
if: startsWith(github.ref, 'refs/tags/v') && github.repository_owner == 'baconpaul' | ||
runs-on: ubuntu-latest | ||
needs: [build_plugin] | ||
steps: | ||
- uses: actions/download-artifact@v4 | ||
- name: Upload to Release | ||
uses: surge-synthesizer/sst-githubactions/upload-to-release@main | ||
with: | ||
path: artifacts | ||
- name: Show Installer Directory | ||
run: | | ||
ls -R artifacts | ||
tag: ${{ github.ref_name }} | ||
reuse_tag: false | ||
create_tag: true | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Create Release | ||
uses: softprops/action-gh-release@v2 | ||
with: | ||
tag_name: ${{ github.ref_name }} | ||
name: Release ${{ github.ref_name }} | ||
body: | | ||
${{ github.event.repository.name }} Release ${{ github.ref_name }} | ||
draft: false | ||
prerelease: false | ||
|
||
- name: Upload release assets | ||
uses: svenstaro/upload-release-action@v2 | ||
- name: Post to Discord | ||
uses: surge-synthesizer/sst-githubactions/discord-release-notify@main | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
file: artifacts/**/**/** | ||
webhook: ${{ secrets.DISCORD_WEBHOOK }} | ||
tag: ${{ github.ref_name }} | ||
file_glob: true | ||
title: "A New Six Sines Release is Available" | ||
subtitle: "But really, what does stable mean?" |