Files
packwiz-extras/.github/workflows/release.yaml
T
2025-12-02 20:19:51 -08:00

54 lines
1.2 KiB
YAML

name: Build and Release
on:
push:
tags:
- "*"
permissions:
contents: write
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v5
with:
fetch-depth: 0
- name: Setup Node
uses: actions/setup-node@v6
with:
node-version: latest
- name: Build
run: |
npm install
npm run compile
npm run docs
npm pack
mv packwiz-extras-lib*.tgz packwiz-extras-lib.tgz
git log $(git describe --tags --abbrev=0 HEAD~1)..HEAD --oneline > changelog.txt
- name: Release
uses: softprops/action-gh-release@v2
with:
make_latest: true
body_path: changelog.txt
files: |
packwiz-extras-lib.tgz
bin/*/*
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: './docs'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4