Skip to content

Develop

Develop #2

Workflow file for this run

name: Develop
on:
workflow_run:
workflows: [CI]
branches: [develop]
types: [completed]
permissions:
contents: write
jobs:
release:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/setup-node@v3
with:
node-version: 16.x
cache: "pnpm"
- run: pnpm install --frozen-lockfile
- run: pnpm run build
- name: Zip release
uses: TheDoctor0/[email protected]
with:
type: 'zip'
filename: 'develop.zip'
exclusions: '*.* ./api/* ./node_modules/* catapi.json *.yaml *.ts'
directory: '.'
path: '.'
- name: 'Get latest tag'
id: latest_tag
uses: "WyriHaximus/github-action-get-previous-tag@v1"
with:
fallback: 0.0.1
- name: Upload release
uses: ncipollo/[email protected]
with:
tag: ${{ steps.latest_tag.outputs.tag }}
artifacts: 'develop.zip'
allowUpdates: true
replacesArtifacts: true
body: |
${{ github.event.workflow_run.head_commit }}
token: ${{ secrets.GITHUB_TOKEN }}