Skip to content

Commit

Permalink
test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
bodsch committed Sep 1, 2024
1 parent b3738c1 commit 8150c49
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
- main
- debug
- feature/**
tags:
schedule:
- cron: "21 4 * * 0"

Expand Down Expand Up @@ -43,13 +44,13 @@ jobs:
name: ${{ steps.makepkg.outputs.pkgfile0 }}
path: ${{ steps.makepkg.outputs.pkgfile0 }}

- name: Release
uses: softprops/action-gh-release@v2
# if: startsWith(github.ref, 'refs/tags/')
with:
files: |
${{ steps.makepkg.outputs.pkgfile0 }}
token: ${{ github.token }}
# - name: Release
# uses: softprops/action-gh-release@v2
# # if: startsWith(github.ref, 'refs/tags/')
# with:
# files: |
# ${{ steps.makepkg.outputs.pkgfile0 }}
# token: ${{ github.token }}

# - name: upload artifact
# uses: actions/upload-release-asset@v3
Expand Down
42 changes: 42 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
---

name: Release

on:
workflow_dispatch:
push:
tags:

permissions:
# Allow creating GitHub release
contents: write

jobs:
pkgbuild:
runs-on: ubuntu-latest
steps:

- name: Checkout
uses: actions/checkout@v4

- name: Makepkg Build and Check
id: makepkg
uses: Pinghigh/pkgbuild-action@v5
with:
makepkgArgs: "--skippgpcheck --noconfirm"

# # Uncomment to upload the package as an artifact
# - name: Upload Package Archive
# id: upload_package
# uses: actions/upload-artifact@v4
# with:
# name: ${{ steps.makepkg.outputs.pkgfile0 }}
# path: ${{ steps.makepkg.outputs.pkgfile0 }}

- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
${{ steps.makepkg.outputs.pkgfile0 }}
token: ${{ github.token }}

0 comments on commit 8150c49

Please sign in to comment.