Skip to content

Support globs in release filenames #18

Support globs in release filenames

Support globs in release filenames #18

Workflow file for this run

name: Release
on:
push:
branches:
- 'main'
paths:
- 'package.json'
jobs:
release:
name: Release
runs-on: ubuntu-latest
outputs:
release_id: ${{ steps.release.outputs.releaseID }}
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- uses: actions/setup-node@ee36e8b5c0fdd6014a0398aed18ce9876360bd63
with:
node-version: 20
- name: Build and package
run: |
yarn
yarn package
- name: Commit changes
uses: planetscale/ghcommit-action@5cd5ba8c2ef5c6e6d90f856d36e700fb79183e68
with:
commit_message: "Update dist/index.js"
repo: ${{ github.repository }}
branch: ${{ github.head_ref || github.ref_name }}
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
- id: hash
run: |
git fetch origin
echo "hash=$(git rev-parse `git branch -r --sort=committerdate | tail -1`)" >> $GITHUB_OUTPUT
- name: Make release
id: release
uses: ./
with:
files: |
dist/index.js
appID: ${{ secrets.RELEASE_APP_ID }}
appPrivateKey: ${{ secrets.RELEASE_APP_PK }}
lastCommit: ${{ steps.hash.outputs.hash }}
discordWebhook: ${{ secrets.DISCORD_WEBHOOK }}
upload-logs:
name: Upload Logs
runs-on: ubuntu-latest
needs: release
steps:
- uses: Kas-tle/release-build-log-action@1b57448eaf9476e6e05450e4ea240449eac2c0d2
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
releaseID: ${{ needs.release.outputs.release_id }}