Skip to content

cd

cd #82

Workflow file for this run

name: cd
on:
workflow_dispatch:
inputs:
version:
required: true
permissions:
contents: read
concurrency:
group: v${{ inputs.version }}
cancel-in-progress: true
jobs:
qa:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- macos-latest
- ubuntu-latest
- [self-hosted, macOS, ARM64]
- [self-hosted, linux, ARM64]
steps:
- uses: actions/checkout@v4
- uses: pkgxdev/dev@v0
- run: deno task dnt
attach:
runs-on: ubuntu-latest
needs: qa
steps:
- uses: actions/checkout@v4
- uses: pkgxdev/dev@v0
- run: deno task dnt ${{ inputs.version }} --no-test
- run: |
mv dist libpkgx-${{inputs.version}}
tar cJf libpkgx-${{ inputs.version }}.tar.xz libpkgx-${{inputs.version}}
- name: attach to release
run:
gh release upload
--clobber
v${{ inputs.version }}
libpkgx-${{ inputs.version }}.tar.xz
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
GH_REPO: pkgxdev/libpkgx