Skip to content

Commit

Permalink
Update ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
AOx0 committed Dec 8, 2024
1 parent 35526f1 commit 18391b5
Showing 1 changed file with 42 additions and 42 deletions.
84 changes: 42 additions & 42 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,47 +10,47 @@ jobs:
runs-on: ubuntu-latest
environment: "signing key"
steps:
- name: checkout repo
uses: actions/checkout@v2
with:
fetch-depth: '0'
- name: Build packages
run: |
echo "$GITHUB_REPOSITORY" > ./repo
echo -n "$GPG_SIGNING_KEY" > ./gpg_key
file ./gpg_key
docker run -t -v $PWD:/build archlinux /bin/bash /build/entrypoint.sh
ls -l .
env:
GPG_SIGNING_KEY: ${{ secrets.GPG_SIGNING_KEY }}

- name: generate tag
id: tag
run: |
count=$(git rev-list --count HEAD)
hash=$(git rev-parse --short HEAD)
echo "::set-output name=tag::r${count}.${hash}"
- name: Print sha512sums
run: sha512sum */*.pkg.tar.*
- name: checkout repo
uses: actions/checkout@v3
with:
fetch-depth: "0"
- name: Build packages
run: |
echo "$GITHUB_REPOSITORY" > ./repo
echo -n "$GPG_SIGNING_KEY" > ./gpg_key
file ./gpg_key
docker run -t -v $PWD:/build archlinux /bin/bash /build/entrypoint.sh
ls -l .
env:
GPG_SIGNING_KEY: ${{ secrets.GPG_SIGNING_KEY }}

- name: Upload Packages Artifact
uses: actions/upload-artifact@v2
with:
name: packages-${{ steps.tag.outputs.tag }}
path: |
${{ github.workspace }}/*.pkg.tar.*
${{ github.workspace }}/*.files*
${{ github.workspace }}/*.db*
- name: generate tag
id: tag
run: |
count=$(git rev-list --count HEAD)
hash=$(git rev-parse --short HEAD)
echo "::set-output name=tag::r${count}.${hash}"
- name: Release
if: ${{ github.ref == 'refs/heads/main' && !contains(github.event.head_commit.message, '[no rel]') }}
uses: softprops/action-gh-release@v1
with:
files: |
${{ github.workspace }}/*.pkg.tar.*
${{ github.workspace }}/*.files*
${{ github.workspace }}/*.db*
tag_name: packages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Print sha512sums
run: sha512sum */*.pkg.tar.*

- name: Upload Packages Artifact
uses: actions/upload-artifact@v3
with:
name: packages-${{ steps.tag.outputs.tag }}
path: |
${{ github.workspace }}/*.pkg.tar.*
${{ github.workspace }}/*.files*
${{ github.workspace }}/*.db*
- name: Release
if: ${{ github.ref == 'refs/heads/main' && !contains(github.event.head_commit.message, '[no rel]') }}
uses: softprops/action-gh-release@v1
with:
files: |
${{ github.workspace }}/*.pkg.tar.*
${{ github.workspace }}/*.files*
${{ github.workspace }}/*.db*
tag_name: packages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 18391b5

Please sign in to comment.