Skip to content

Commit

Permalink
update actions
Browse files Browse the repository at this point in the history
  • Loading branch information
jmesrje committed Sep 2, 2024
1 parent 68cddc1 commit 8267ceb
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 112 deletions.
55 changes: 0 additions & 55 deletions .github/workflows/docs.yml

This file was deleted.

52 changes: 0 additions & 52 deletions .github/workflows/publish.yml

This file was deleted.

51 changes: 46 additions & 5 deletions .github/workflows/draft.yml → .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ on:
- 'v*.*.*'

permissions:
contents: write
contents: read
pages: write
id-token: write

jobs:
bump:
Expand Down Expand Up @@ -46,8 +48,8 @@ jobs:
git tag -f ${{ github.ref_name }}
git push -f --tags
draft-build:
name: Draft & Build Assets
publish-build:
name: Publish Assets
runs-on: ubuntu-latest
needs: bump
steps:
Expand Down Expand Up @@ -77,10 +79,49 @@ jobs:
with:
tag_name: ${{ github.ref_name }}
name: ${{ github.ref_name }}
draft: true
prerelease: ${{ contains(github.ref_name, 'rc') }}
body: |
## Changelog
${{ needs.bump.outputs.release-body }}
files: |
./Standalone.rbxm
./Standalone.rbxm
publish-package:
name: Publish Package
runs-on: ubuntu-latest
needs: publish-build
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup Rokit
uses: CompeyDev/[email protected]

- name: Log In
env:
WALLY_AUTH: ${{ secrets.WALLY_AUTH_TOKEN }}
run: |
mkdir ~/.wally
printenv WALLY_AUTH > ~/.wally/auth.toml
- name: Publish
run: |
wally publish
publish-announcement:
name: Publish Announce
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup Rokit
uses: CompeyDev/[email protected]

- name: Send webhook
env:
WEBHOOK_URL: ${{ secrets.UPDATE_WEBHOOK_URL }}
run: |
PROJECT="${{ github.repository }}"
VERSION="${{ github.ref_name }}"
lune run .lune/discord.luau "$WEBHOOK_URL" "announcement" "$PROJECT" "$VERSION"

0 comments on commit 8267ceb

Please sign in to comment.