Skip to content

Commit

Permalink
Merge pull request dmdorman#546 from phBalance/phBalance/update-githu…
Browse files Browse the repository at this point in the history
…b-actions

GitHub Workflow Improvements
  • Loading branch information
phBalance authored Dec 24, 2023
2 parents 7f4edc8 + a34f4db commit 582c499
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/check_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Install
run: npm ci
Expand All @@ -16,4 +16,4 @@ jobs:
run: npm run prettier

- name: Any eslint issues?
run: npm run prettier
run: npm run lint
13 changes: 7 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
release: ${{ steps.extract_release.outputs.RELEASE }}

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Install jq
run: sudo apt-get install jq
Expand Down Expand Up @@ -46,7 +46,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: build css
run: npm ci && npm run compile
Expand All @@ -59,15 +59,16 @@ jobs:
sed -i 's|"manifest": "[^"]*",|"manifest": "https://github.com/dmdorman/hero6e-foundryvtt/releases/download/${{ needs.check_release.outputs.release }}/system.json",|' system.json
sed -i 's|"download": "[^"]*",|"download": "https://github.com/dmdorman/hero6e-foundryvtt/releases/download/${{ needs.check_release.outputs.release }}/hero6efoundryvttv2.zip",|' system.json
- name: Archive code
- name: Make a FoundryVTT system package (manifest and stuff required for execution) and ignore the rest as it is already archived in GitHub and is only needed to build or develop
run: |
zip -r hero6efoundryvttv2.zip .
zip -r herofoundryvttv2.zip . -x .git/\* -x .github/\* -x node_modules/\* -x scss/\* -x .gitattributes -x .gitignore -x .git-blame-ignore-revs -x .eslintrc.json -x .npmignore -x .prettierignore -x .prettierrc.json -x gulpfile.mjs -x package.json -x package-lock.json
- name: Upload Artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: hero6efoundryvttv2.zip
path: hero6efoundryvttv2.zip
if-no-files-found: error

- name: Create and push tag
run: |
Expand Down Expand Up @@ -128,7 +129,7 @@ jobs:
run: wget https://github.com/${{ github.repository }}/releases/download/${{ needs.prepare_release.outputs.release_name }}/system.json

- name: Publish to Foundry
uses: Varriount/fvtt-autopublish@v1.1.1
uses: Varriount/fvtt-autopublish@v2.0.1
with:
username: ${{ secrets.FOUNDRY_ADMIN_USERNAME }}
password: ${{ secrets.FOUNDRY_ADMIN_PASSWORD }}
Expand Down
3 changes: 3 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@

# Ignore all json files
**/*.json

# Ignore all yaml files
**/*.yml
1 change: 0 additions & 1 deletion module/actor/actor.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import {
getPowerInfo,
getCharacteristicInfoArrayForActor,
} from "../utility/util.js";
import { AdjustmentSources } from "../utility/adjustment.js";

/**
* Extend the base Actor entity by defining a custom roll data structure which is ideal for the Simple system.
Expand Down

0 comments on commit 582c499

Please sign in to comment.