-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(workflow): release workflow update
- Loading branch information
Showing
2 changed files
with
33 additions
and
4 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 |
---|---|---|
@@ -1,5 +1,4 @@ | ||
name: Convert Macros | ||
|
||
name: Linter | ||
on: | ||
pull_request: | ||
branches: | ||
|
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 |
---|---|---|
|
@@ -10,20 +10,50 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Update settings.json url | ||
uses: jossef/[email protected] | ||
with: | ||
file: module.json | ||
field: url | ||
value: https://github.com/${{github.repository}} | ||
- name: Update settings.json bugs | ||
uses: jossef/[email protected] | ||
with: | ||
file: module.json | ||
field: bugs | ||
value: https://github.com/${{github.repository}}/issues | ||
- name: Update settings.json manifest | ||
uses: jossef/[email protected] | ||
with: | ||
file: module.json | ||
field: manifest | ||
value: https://github.com/${{github.repository}}/releases/latest/download/module.json | ||
- name: Update settings.json version | ||
uses: jossef/[email protected] | ||
with: | ||
file: module.json | ||
field: version | ||
value: ${{github.event.release.tag_name}} | ||
- name: Update settings.json download | ||
uses: jossef/[email protected] | ||
with: | ||
file: module.json | ||
field: download | ||
value: https://github.com/${{github.repository}}/releases/download/${{github.event.release.tag_name}}/module.zip | ||
|
||
# Create zip file | ||
- run: zip -r ./module.zip module.json LICENSE packs/ README.md | ||
|
||
# Create a release for this specific version. | ||
- name: Update Release with Files | ||
if: !github.event.release.prerelease | ||
id: create_version_release | ||
uses: ncipollo/release-action@v1 | ||
with: | ||
allowUpdates: true | ||
name: ${{ github.event.release.name }} | ||
draft: false | ||
prerelease: false | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
token: ${{ secrets.GH_TOKEN }} | ||
artifacts: "./module.json, ./module.zip" | ||
tag: ${{ github.event.release.tag_name }} | ||
body: ${{ github.event.release.body }} |