mirror of
https://github.com/huo-ju/photoprism-freebsd-port.git
synced 2026-01-04 11:43:33 +01:00
add auto release
This commit is contained in:
6
.github/workflows/build_pkg.yml
vendored
6
.github/workflows/build_pkg.yml
vendored
@@ -1,9 +1,7 @@
|
||||
name: Create Binary Pkg
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
workflow_call:
|
||||
|
||||
jobs:
|
||||
build_14:
|
||||
@@ -23,6 +21,7 @@ jobs:
|
||||
run: |
|
||||
git config --global --add safe.directory /home/runner/work/photoprism-freebsd-port/photoprism-freebsd-port
|
||||
make package
|
||||
for file in work/pkg/*.pkg;do mv $file ${file//\.pkg/-FreeBSD-$(uname -r).pkg}; done
|
||||
- name: Upload build artifacts
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
@@ -47,6 +46,7 @@ jobs:
|
||||
run: |
|
||||
git config --global --add safe.directory /home/runner/work/photoprism-freebsd-port/photoprism-freebsd-port
|
||||
make package
|
||||
for file in work/pkg/*.pkg;do mv $file ${file//\.pkg/-FreeBSD-$(uname -r).pkg}; done
|
||||
- name: Upload build artifacts
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
|
||||
48
.github/workflows/release.yml
vendored
Normal file
48
.github/workflows/release.yml
vendored
Normal file
@@ -0,0 +1,48 @@
|
||||
name: Release
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
release:
|
||||
types:
|
||||
- published
|
||||
|
||||
|
||||
jobs:
|
||||
Build_Packages:
|
||||
secrets: inherit
|
||||
permissions:
|
||||
contents: write
|
||||
checks: write
|
||||
actions: read
|
||||
issues: read
|
||||
packages: write
|
||||
pull-requests: read
|
||||
repository-projects: read
|
||||
statuses: read
|
||||
uses: ./.github/workflows/build_pkg.yml
|
||||
Upload_Artifacts:
|
||||
needs: Build_Packages
|
||||
permissions:
|
||||
contents: write
|
||||
checks: write
|
||||
actions: read
|
||||
issues: read
|
||||
packages: write
|
||||
pull-requests: read
|
||||
repository-projects: read
|
||||
statuses: read
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: freebsd-14
|
||||
path: target/
|
||||
- uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: freebsd-13
|
||||
path: target/
|
||||
- uses: alexellis/upload-assets@0.4.1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ github.token }}
|
||||
with:
|
||||
asset_paths: '[ "target/*.pkg" ]'
|
||||
Reference in New Issue
Block a user