docs: update changelog #29
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: Release | |
on: | |
push: | |
tags: | |
- "v*.*.*" | |
permissions: | |
contents: write | |
pages: write | |
id-token: write | |
jobs: | |
changelog: | |
name: Changelog | |
runs-on: ubuntu-latest | |
outputs: | |
release-body: ${{ steps.update-changelog.outputs.release-notes }} | |
steps: | |
- 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: Commit changelog | |
uses: actions-js/[email protected] | |
with: | |
message: "docs(release): publish ${{ github.ref_name }}" | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
needs: changelog | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: main | |
- name: Setup Pesde | |
uses: lumin-org/[email protected] | |
with: | |
cache: true | |
- name: Install dependencies | |
run: | | |
pesde install | |
- name: Build | |
run: rojo build standalone.project.json --output ./standalone.rbxm | |
- name: 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.changelog.outputs.release-body }} | |
files: | | |
./standalone.rbxm | |
package: | |
name: Packages | |
runs-on: ubuntu-latest | |
needs: changelog | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: main | |
- name: Setup Pesde | |
uses: lumin-org/[email protected] | |
with: | |
token: ${{ secrets.PESDE_TOKEN }} | |
cache: true | |
- id: get-version | |
uses: battila7/get-version-action@v2 | |
- name: Bump package config | |
uses: lumin-org/[email protected] | |
with: | |
key: "version" | |
content: ${{ steps.get-version.outputs.version-without-v }} | |
files: | | |
pesde.toml | |
package.json | |
- name: Install dependencies | |
run: | | |
pesde install | |
- name: Publish packages | |
run: | | |
pesde publish -y | |
- name: Commit package config | |
uses: actions-js/[email protected] | |
with: | |
rebase: true | |
message: "build(release): publish ${{ github.ref_name }}" | |
github_token: ${{ secrets.GITHUB_TOKEN }} |