Skip to content

Commit

Permalink
ci(workflow): release workflow update
Browse files Browse the repository at this point in the history
  • Loading branch information
catrone3 committed Nov 14, 2023
1 parent f9e7d30 commit 720de91
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
name: Convert Macros

name: Linter
on:
pull_request:
branches:
Expand Down
34 changes: 32 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit 720de91

Please sign in to comment.