Skip to content
This repository has been archived by the owner on Mar 31, 2024. It is now read-only.

Publish release including template tarballs #20

Publish release including template tarballs

Publish release including template tarballs #20

Workflow file for this run

name: Publish release including template tarballs
on:
push:
tags:
- "v*.*.*"
jobs:
publish:
runs-on: ubuntu-22.04
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- name: Generate release files
run: bun ./scripts/release.js --tag=${{ github.ref_name }}
- name: Create pre-release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
dist/project-${{ github.ref_name }}.tar.gz
dist/project-${{ github.ref_name }}.tar.gz.md5
dist/project-${{ github.ref_name }}.tar.gz.sha1
dist/shared-${{ github.ref_name }}.tar.gz
dist/shared-${{ github.ref_name }}.tar.gz.md5
dist/shared-${{ github.ref_name }}.tar.gz.sha1
dist/static-${{ github.ref_name }}.tar.gz
dist/static-${{ github.ref_name }}.tar.gz.md5
dist/static-${{ github.ref_name }}.tar.gz.sha1
prerelease: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}