1
0
forked from blue/mlc

Update .gitea/workflows/release.yml

This commit is contained in:
Blue 2023-10-10 23:00:59 +00:00
parent e9a1e8cb1d
commit 633d08fd4b

View File

@ -9,16 +9,13 @@ jobs:
runs-on: archlinux runs-on: archlinux
steps: steps:
- name: Download the release tarball - name: Download the release tarball
uses: curl -sL "${{ gitea.server_url }}/${{ gitea.repository }}/archive/${{ gitea.event.release.tag_name }}.tar.gz" uses: curl -sL "${{ gitea.server_url }}/${{ gitea.repository }}/archive/${{ gitea.event.release.tag_name }}.tar.gz" --output tarball.tar.gz
- name: Set tarball filename variable
run: echo "tbName=$(echo ${{ gitea.event.repository.name }}-${{ gitea.event.release.tag_name }}.tar.gz)" >> $GITHUB_ENV
- name: Calculate SHA256 for the tarball - name: Calculate SHA256 for the tarball
run: echo "tbSum=$(echo sha256sum ${{ env.tbName }} | cut -d " " -f 1" >> $GITHUB_ENV run: echo "tbSum=$(echo sha256sum tarball.tar.gz | cut -d " " -f 1" >> $GITHUB_ENV
- name: Unarchive tarball - name: Unarchive tarball
run: tar -xvzf ${{ env.tbName }} run: tar -xvzf tarball.tar.gz
- name: Create a directory - name: Create a directory
run: mkdir aur run: mkdir aur