Skip to content

Commit

Permalink
Update release workflow permissions and add release step
Browse files Browse the repository at this point in the history
  • Loading branch information
seiryIsNotABlock committed Apr 2, 2024
1 parent 8e24a53 commit 693bced
Showing 1 changed file with 13 additions and 18 deletions.
31 changes: 13 additions & 18 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
---
name: Download, unzip, test & package latest AirConnect release
on:
workflow_dispatch:
push:
branches: ["master"]
pull_request:
branches: ["master"]
permissions: read-all
release:
types: [published]

permissions:
contents: write
discussions: write

jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -31,18 +32,6 @@ jobs:
fileName: "AirConnect*.zip"
out-file-path: "src/dsm7/bin"
extract: true
- name: check bin format
run: |
sudo apt update
sudo apt-get install file
cd "${GITHUB_WORKSPACE}"/src/dsm7/bin/
ls -al
file airupnp-linux-x86_64
# - name: Set up Upterm
# id: upterm
# uses: lhotari/action-upterm@v1

- name: Test downloaded Release
id: test_release
run: |
Expand Down Expand Up @@ -72,6 +61,12 @@ jobs:
id: check_created_packages
run: ls -ltR "${GITHUB_WORKSPACE}"/src/dsm7/dist/

- name: Release
uses: softprops/action-gh-release@v2
with:
files: |
src/dsm7/dist/*.spk
- name: Upload releases to artifacts
id: upload_releases
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit 693bced

Please sign in to comment.