mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
Snap (Linux x86_64) (#1232)
This commit is contained in:
30
.github/workflows/pull-request.yml
vendored
30
.github/workflows/pull-request.yml
vendored
@@ -63,7 +63,7 @@ jobs:
|
||||
|
||||
# Upload artifacts
|
||||
- name: Upload artifacts
|
||||
uses: actions/upload-artifact@v1
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: ${{ matrix.dockerImage }}
|
||||
path: ${{ matrix.dockerImage }}
|
||||
@@ -110,7 +110,7 @@ jobs:
|
||||
|
||||
# Upload artifacts
|
||||
- name: Upload artifacts
|
||||
uses: actions/upload-artifact@v1
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: macOS
|
||||
path: macOS
|
||||
@@ -184,7 +184,31 @@ jobs:
|
||||
|
||||
# Upload artifacts
|
||||
- name: Upload artifacts
|
||||
uses: actions/upload-artifact@v1
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: windows
|
||||
path: windows
|
||||
|
||||
##########################
|
||||
#### Snap (x86_64) #######
|
||||
##########################
|
||||
|
||||
snap:
|
||||
name: Snap (x86_64)
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v2
|
||||
|
||||
# Build snap package
|
||||
- name: Build snap
|
||||
id: build
|
||||
uses: snapcore/action-build@v1
|
||||
|
||||
# Upload snap artifact (only on tagged commit)
|
||||
- name: Upload snap artifact
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: snap
|
||||
path: ${{ steps.build.outputs.snap }}
|
||||
|
67
.github/workflows/push-master.yml
vendored
67
.github/workflows/push-master.yml
vendored
@@ -146,12 +146,37 @@ jobs:
|
||||
with:
|
||||
path: build/Hyperion-*
|
||||
|
||||
################################
|
||||
###### Publish Releases ########
|
||||
################################
|
||||
##########################
|
||||
#### Snap (x86_64) #######
|
||||
##########################
|
||||
|
||||
publish:
|
||||
name: Publish Releases
|
||||
snap:
|
||||
name: Snap (x86_64)
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v2
|
||||
|
||||
# Build snap package
|
||||
- name: Build snap
|
||||
id: build
|
||||
uses: snapcore/action-build@v1
|
||||
|
||||
# Upload snap artifact (only on tagged commit)
|
||||
- name: Upload snap artifact
|
||||
if: startsWith(github.event.ref, 'refs/tags')
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: snap
|
||||
path: ${{ steps.build.outputs.snap }}
|
||||
|
||||
#######################################
|
||||
###### Publish GitHub Releases ########
|
||||
#######################################
|
||||
|
||||
github_publish:
|
||||
name: Publish GitHub Releases
|
||||
if: startsWith(github.event.ref, 'refs/tags')
|
||||
needs: [Linux, macOS, windows]
|
||||
runs-on: ubuntu-latest
|
||||
@@ -188,3 +213,35 @@ jobs:
|
||||
prerelease: ${{ env.preRelease }}
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
############################
|
||||
###### Snap Release ########
|
||||
############################
|
||||
|
||||
snap_publish:
|
||||
name: Publish Snap Release
|
||||
if: startsWith(github.event.ref, 'refs/tags')
|
||||
needs: [snap]
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
|
||||
# Download snap from snap job
|
||||
- name: Download snap from snap build
|
||||
id: download-artifact
|
||||
uses: actions/download-artifact@v2
|
||||
with:
|
||||
name: snap
|
||||
|
||||
# Get file name of the snap
|
||||
- name: Get file name of the snap
|
||||
run: echo "snap=$(ls ${{ steps.download-artifact.outputs.download-path }}/hyperion-ng_*.snap)" >> $GITHUB_ENV
|
||||
|
||||
# Publish snap build to edge channel
|
||||
- name: Publish snap build to edge channel
|
||||
uses: snapcore/action-publish@v1
|
||||
with:
|
||||
store_login: ${{ secrets.SNAP_STORE_LOGIN }}
|
||||
snap: ${{ env.snap }}
|
||||
release: edge
|
||||
|
Reference in New Issue
Block a user