mirror of
https://github.com/45Drives/cockpit-navigator.git
synced 2025-07-31 01:24:37 +02:00
set up permissions for packagin
This commit is contained in:
parent
8270d02f9d
commit
42cf104b7e
10
.github/workflows/build-packages.yml
vendored
10
.github/workflows/build-packages.yml
vendored
@ -2,17 +2,20 @@ name: Build Packages
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- build-package
|
||||
- build
|
||||
tags:
|
||||
- 'v*.*.*'
|
||||
jobs:
|
||||
main:
|
||||
runs-on: self-hosted
|
||||
permissions:
|
||||
contents: write
|
||||
packages: write
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
- name: Package Binaries
|
||||
run: build-packages ${{github.repository}} ${{github.workspace}}
|
||||
run: build-packages ${{github.repository}} ${{github.workspace}} --env NPM_AUTH_TOKEN ${{secrets.NPM_AUTH_PAT}}
|
||||
- name: Set Variables
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
run: |
|
||||
@ -30,7 +33,6 @@ jobs:
|
||||
files: |
|
||||
${{github.workspace}}/dist/packages/*/*.deb
|
||||
${{github.workspace}}/dist/packages/*/*.rpm
|
||||
${{github.workspace}}/LICENSE
|
||||
env:
|
||||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
||||
- name: Update Repository
|
||||
@ -38,4 +40,4 @@ jobs:
|
||||
run: update-repositories ${{github.workspace}}
|
||||
- name: Publish Repository
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
run: publish-repo
|
||||
run: publish-repo
|
||||
|
Loading…
x
Reference in New Issue
Block a user