Skip to content

docs: revert changelog #22

docs: revert changelog

docs: revert changelog #22

Workflow file for this run

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/keep-a-changelog-new-release@v3
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
- name: Setup Pesde
uses: lumin-org/[email protected]
with:
version: 'v0.6.0-rc.7+registry.0.2.0-rc.3'
cache: true
- name: Install dependencies
run: pesde install
- name: Build
run: rojo build standalone.project.json --output ./standalone.rbxm
- name: Release
uses: softprops/action-gh-release@v2
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: Package
runs-on: ubuntu-latest
needs: changelog
steps:
- uses: actions/checkout@v4
- 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
- name: Setup Pesde
uses: lumin-org/[email protected]
with:
version: 'v0.6.0-rc.7+registry.0.2.0-rc.3'
cache: true
token: '${{ secrets.PESDE_TOKEN }}'
- name: Install dependencies
run: |
pesde install
- name: Publish packages
run: |
pesde publish -y
- name: Commit package config
uses: actions-js/[email protected]
with:
message: 'build(release): publish ${{ github.ref_name }}'
github_token: ${{ secrets.GITHUB_TOKEN }}
notification:
name: Notification
runs-on: ubuntu-latest
needs: [build, package, changelog]
steps:
- uses: actions/checkout@v4
- name: Send notification
uses: appleboy/discord-action@master
with:
webhook_id: ${{ secrets.WEBHOOK_ID }}
webhook_token: ${{ secrets.WEBHOOK_TOKEN }}
message: '${{ github.repository }} [${{github.ref_name}}](https://github.com/${{ github.repository }}/releases/${{github.ref_name}}) was just released!\n\n${{ needs.changelog.outputs.release-body }}'