Skip to content

Commit

Permalink
Update actino to do a release
Browse files Browse the repository at this point in the history
  • Loading branch information
AkazaRenn committed Aug 24, 2024
1 parent bd3d2af commit 446f1e5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Create variables
run: echo "TIMESTAMP=$(date +'%Y%m%d%H%M%S')" >> $GITHUB_ENV

- name: Checkout
uses: actions/checkout@v4
with:
Expand All @@ -22,7 +25,6 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}

- name: Append hash to plugin version
if: ${{ github.event_name == 'pull_request_target' }}
run: |
echo "::notice::This run was triggered by a commit. Appending the commit hash to the plugin version."
Expand All @@ -41,10 +43,8 @@ jobs:
echo "::endgroup::"
- uses: pnpm/action-setup@v3
with:
version: 9.4.0

- name: Update pnpm lockfile
if: ${{ inputs.force_pnpm != 'none' }}
run: |
$(which pnpm) install --lockfile-only
Expand All @@ -68,8 +68,15 @@ jobs:
done
tree out
- name: Upload Artifacts to Github
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: output
path: out/*/
path: out/*/

- name: Release
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ env.TIMESTAMP }}
prerelease: true
files: out/*.zip
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "pause-games",
"version": "0.4.3",
"description": "Pause/Resume games to redirect resources and even play/stop apps that don't natively have an immediate option to do so.",
"packageManager": "[email protected]",
"scripts": {
"build": "shx rm -rf dist && rollup -c",
"watch": "rollup -c -w",
Expand Down

0 comments on commit 446f1e5

Please sign in to comment.