Compare commits

...

4 commits

Author SHA1 Message Date
Ticktock Depbot
b26c2e1ac4 Update Yarn to v1.22.22
Some checks failed
renovate/artifacts Artifact file update failure
/ check-changes (pull_request) Successful in 6s
/ build (pull_request) Has been cancelled
2024-12-26 14:44:07 +00:00
236a2bb4ae Only release on main
All checks were successful
/ build (push) Successful in 3m27s
/ check-changes (push) Successful in 5s
2024-12-26 15:39:47 +01:00
69bc410d97 Merge pull request 'Update actions/forgejo-release action to v2.5.1' (#13) from renovate/actions-forgejo-release-2.x into main
Some checks failed
/ build (push) Has been cancelled
/ check-changes (push) Has been cancelled
Reviewed-on: #13
2024-12-26 14:34:10 +00:00
Ticktock Depbot
ad142105f3 Update actions/forgejo-release action to v2.5.1
All checks were successful
/ check-changes (push) Successful in 15s
/ build (push) Successful in 3m34s
2024-12-26 14:29:18 +00:00
2 changed files with 15 additions and 3 deletions

View file

@ -1,4 +1,9 @@
on: [push] on:
push:
branches:
- main
pull_request:
jobs: jobs:
check-changes: check-changes:
runs-on: docker runs-on: docker
@ -67,10 +72,15 @@ jobs:
run: npx playwright test run: npx playwright test
- name: Build WebUI - name: Build WebUI
run: yarn build run: yarn build
# The following steps only run on push to main
- name: Get current block - name: Get current block
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
id: getBlockHeight id: getBlockHeight
run: echo "blockHeight=$(curl -s https://mempool.space/api/blocks/tip/height)" >> $GITHUB_OUTPUT run: echo "blockHeight=$(curl -s https://mempool.space/api/blocks/tip/height)" >> $GITHUB_OUTPUT
- name: Write block height to file - name: Write block height to file
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
env: env:
BLOCK_HEIGHT: ${{ steps.getBlockHeight.outputs.blockHeight }} BLOCK_HEIGHT: ${{ steps.getBlockHeight.outputs.blockHeight }}
run: mkdir -p output && echo "$BLOCK_HEIGHT" > output/version.txt run: mkdir -p output && echo "$BLOCK_HEIGHT" > output/version.txt
@ -94,12 +104,14 @@ jobs:
echo "Directory size is within the threshold $DIRECTORY_SIZE" echo "Directory size is within the threshold $DIRECTORY_SIZE"
fi fi
- name: Create tarball - name: Create tarball
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
run: tar czf webui.tgz --strip-components=1 dist run: tar czf webui.tgz --strip-components=1 dist
- name: Build LittleFS - name: Build LittleFS
run: | run: |
set -e set -e
/tmp/mklittlefs/mklittlefs -c build_gz -s 410000 output/littlefs.bin /tmp/mklittlefs/mklittlefs -c build_gz -s 410000 output/littlefs.bin
- name: Upload artifacts - name: Upload artifacts
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: https://code.forgejo.org/forgejo/upload-artifact@v4 uses: https://code.forgejo.org/forgejo/upload-artifact@v4
with: with:
path: | path: |
@ -107,7 +119,7 @@ jobs:
output/littlefs.bin output/littlefs.bin
- name: Create release - name: Create release
if: github.event_name == 'push' && github.ref == 'refs/heads/main' if: github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: https://code.forgejo.org/actions/forgejo-release@v2.4.0 uses: https://code.forgejo.org/actions/forgejo-release@v2.5.1
with: with:
url: 'https://git.btclock.dev/' url: 'https://git.btclock.dev/'
repo: '${{ github.repository }}' repo: '${{ github.repository }}'

View file

@ -70,5 +70,5 @@
"axios": ">=1.7.7", "axios": ">=1.7.7",
"micromatch": ">=4.0.8" "micromatch": ">=4.0.8"
}, },
"packageManager": "yarn@1.22.21+sha1.1959a18351b811cdeedbd484a8f86c3cc3bbaf72" "packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
} }