Skip to content

recursive zip (#25)

recursive zip (#25) #1

Workflow file for this run

name: release
on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
permissions:
contents: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: main
- name: update version in repo
env:
tag: ${{ github.ref_name }}
run: |
tmp=$(mktemp)
jq --arg version "$version" '.versions |= [$version] + .' installer/versions.json > "$tmp" && mv "$tmp" installer/versions.json
git config --global user.name 'Alan Bits'
git config --global user.email 'alan@lnbits.com'
git commit -am "[CHORE] update version to $tag"
git push
git push --delete origin $tag
git tag -fa $tag -m "update via workflow"
git push --tags
- name: Install Arduino CLI
uses: arduino/setup-arduino-cli@v1
- name: build sketch with arduino cli
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref_name }}
run: |
sh build.sh
sh release.sh $tag
- name: Create github release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref_name }}
run: |
gh release create "$tag" --generate-notes ./firmware.zip ./dist/$tag/manifest.json ./dist/$tag/bootloader.bin \
./dist/$tag/boot_app0.bin ./dist/$tag/bitcoinSwitch.ino.bin ./dist/$tag/bitcoinSwitch.ino.partitions.bin
pages:

Check failure on line 53 in .github/workflows/release.yml

View workflow run for this annotation

GitHub Actions / release

Invalid workflow file

The workflow is not valid. .github/workflows/release.yml (Line: 53, Col: 3): Error calling workflow 'lnbits/bitcoinswitch/.github/workflows/static.yml@4667e1517ff05f60ea2312c69a1c2928e025739f'. The workflow is requesting 'pages: write, id-token: write', but is only allowed 'pages: none, id-token: none'.
needs: [ release ]
uses: ./.github/workflows/static.yml