Skip to content

Commit

Permalink
Update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Sarrus1 committed Oct 8, 2021
1 parent 9c53cb2 commit ec4ac79
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 2 deletions.
24 changes: 23 additions & 1 deletion .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,27 @@ jobs:
echo -e "\nCompiling $file..."
spcomp -E -w234 -O2 -v2 -i include $file
done
echo ${{ steps.setup_sp.outputs.plugin-version }}
working-directory: ${{ env.SCRIPTS_PATH }}

- name: Changelog
id: changelog
uses: mindsers/[email protected]

- uses: papeloto/action-zip@v1
with:
files: example.smx
dest: release.zip

- name: Create Release
uses: ncipollo/release-action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
token: ${{ secrets.GITHUB_TOKEN }}
tag: v${{ steps.setup_sp.outputs.plugin-version }}
artifacts: "release.zip"
body: ${{ steps.changelog.outputs.changes }}
draft: false
allowUpdates: true
prerelease: true
replacesArtifacts: true
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
## Release Notes

## [1.0.0]

### Added

- Initial release.
2 changes: 1 addition & 1 deletion example.sp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public Plugin myinfo =
name = "discordWebhookAPI",
author = "Sarrus",
description = "",
version = "1.0",
version = "1.0.0",
url = "https://github.com/Sarrus1/discordWebhookAPI"
};

Expand Down

0 comments on commit ec4ac79

Please sign in to comment.