Skip to content
This repository has been archived by the owner on Dec 5, 2024. It is now read-only.

Commit

Permalink
🦪 Update workflow file and add dependabot
Browse files Browse the repository at this point in the history
  • Loading branch information
database64128 committed Apr 14, 2022
1 parent 9f81915 commit 55faba2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: github-actions
directory: "/"
schedule:
interval: daily
16 changes: 7 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,31 +8,29 @@ on:
jobs:
publish:
name: Publish
strategy:
fail-fast: false
runs-on: ubuntu-latest
container:
image: archlinux/archlinux:base-devel

steps:
- uses: actions/checkout@v2
- name: Get version
id: get_version
run: echo "::set-output name=VERSION::$(echo $GITHUB_REF | cut -d / -f 3)"
- uses: actions/checkout@v3

- name: Run build script
run: bash ./build-static.sh ${{ steps.get_version.outputs.VERSION }}
run: bash ./build-static.sh ${{ github.ref_name }}

- name: Package
env:
ZSTD_CLEVEL: 19
ZSTD_NBTHREADS: 2
run: |
cd installed-static
tar -acf ../qt-somewhere-static-${{ steps.get_version.outputs.VERSION }}-archlinux-x86_64.tar.zst .
tar -acf ../qt-somewhere-static-${{ github.ref_name }}-archlinux-x86_64.tar.zst .
- name: Upload release assets
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: qt-somewhere-static-${{ steps.get_version.outputs.VERSION }}-archlinux-x86_64.tar.zst
file: qt-somewhere-static-${{ github.ref_name }}-archlinux-x86_64.tar.zst
tag: ${{ github.ref }}
file_glob: false
overwrite: true
Expand Down

0 comments on commit 55faba2

Please sign in to comment.