Skip to content

Commit

Permalink
Update publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
vtt-lair authored Oct 18, 2022
1 parent 2da1f63 commit 7a42007
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Checkout code
uses: actions/checkout@v2

# get part of the tag after the `v`
- name: Extract tag version number
Expand All @@ -28,7 +29,8 @@ jobs:
download: https://github.com/${{github.repository}}/releases/download/${{github.event.release.tag_name}}/module.zip

# Create a zip file with all files required by the module to add to the release
- run: zip -r ./module.zip module.json lang/ scripts/ styles/ templates/
- name: Create zip file
run: zip -r ./module.zip module.json lang/ scripts/ styles/ templates/

# Create a release for this specific version
- name: Update Release with Files
Expand All @@ -44,6 +46,12 @@ jobs:
tag: ${{ github.event.release.tag_name }}
body: ${{ github.event.release.body }}

# Install Node
- name: Install node
uses: actions/[email protected]
with:
node-version: 16

# Publish to FoundryVTT
- name: Publish to Foundry VTT Repo
id: publish_foundry_repo
Expand Down

0 comments on commit 7a42007

Please sign in to comment.