retry #3
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Draft | |
on: | |
push: | |
tags: | |
- 'v*.*.*' | |
permissions: | |
contents: write | |
pages: write | |
id-token: write | |
jobs: | |
bump: | |
name: Bump Versions | |
runs-on: ubuntu-latest | |
outputs: | |
release-body: ${{ steps.update-changelog.outputs.release-notes }} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
ref: "main" | |
- name: Update changelog | |
id: update-changelog | |
uses: thomaseizinger/[email protected] | |
with: | |
tag: ${{ github.ref_name }} | |
changelogPath: "docs/changelog.md" | |
- name: Bump Wally version | |
id: version-bump | |
uses: DervexDev/file-version-bumper@v1 | |
with: | |
path: ./wally.toml | |
- name: Commit and push | |
uses: EndBug/add-and-commit@v9 | |
if: ${{ github.ref_name != steps.version-bump.outputs.old_version }} | |
with: | |
message: Bump version to ${{ github.ref_name }} | |
default_author: github_actions | |
- name: Update tag | |
if: ${{ github.ref_name != steps.version-bump.outputs.old_version }} | |
run: | | |
git tag -f ${{ github.ref_name }} | |
git push -f --tags | |
publish-build: | |
name: Publish Assets | |
runs-on: ubuntu-latest | |
needs: bump | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Setup Rokit | |
uses: CompeyDev/[email protected] | |
- name: Install Wally dependencies | |
run: wally install | |
- name: Format code | |
run: stylua src/ | |
- name: Build standalone | |
run: rojo build standalone.project.json --output ./Standalone.rbxm | |
- name: Draft release | |
uses: softprops/[email protected] | |
with: | |
tag_name: ${{ github.ref_name }} | |
name: ${{ github.ref_name }} | |
prerelease: ${{ contains(github.ref_name, 'rc') }} | |
generate_release_notes: true | |
body: | | |
## Changelog | |
${{ needs.bump.outputs.release-body }} | |
files: | | |
./Standalone.rbxm | |
publish-package: | |
name: Publish Package | |
runs-on: ubuntu-latest | |
needs: bump | |
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 Announcement | |
runs-on: ubuntu-latest | |
needs: [publish-package, publish-build] | |
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" |