Skip to content

Bump deps and add CI #1

Bump deps and add CI

Bump deps and add CI #1

Workflow file for this run

name: release

Check failure on line 1 in .github/workflows/release.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/release.yaml

Invalid workflow file

(Line: 21, Col: 18): Unrecognized named-value: 'jobs'. Located at position 1 within expression: jobs.build.outputs.version, (Line: 22, Col: 22): Unrecognized named-value: 'env'. Located at position 1 within expression: env.PKG_VER
on:
workflow_call:
inputs:
upload-type:
required: true
type: string
workflow_dispatch:
jobs:
build:
uses: ./.github/workflows/build.yaml
upload-artefact:
needs: build
runs-on: ubuntu-latest
env:
PKG_URL: "https://storage.bunnycdn.com/asahilinux/${{ inputs.upload-type }}"
PKG_VER: "installer-${{ jobs.build.outputs.version }}"
RELEASE_PKG: "releases/${{ env.PKG_VER }}"
steps:
- name: Download artefact
uses: actions/download-artifact@v4
with:
name: installer-build
path: releases/.
- name: Push to Bunny
run: |
if [ ! -e "${RELEASE_PKG}" ]; then
echo "Package not found!"
exit 1
fi
upload() {
curl -# --fail --request PUT \
--url "${2}" \
-H "AccessKey: ${{ secrets.BUNNY_TOKEN }}" \
-H "Content-Type: ${3}" \
-H "Accept: application/json" \
--data-binary @${1}
}
upload "${{ env.RELEASE_PKG }}" "${{ env.PKG_URL }}/${{ env.PKG_VER }}" "application/octet-stream"
upload "releases/latest" "${{ env.PKG_URL }}/latest" "text/plain"