mirror of
https://github.com/etlegacy/etlegacy-snap.git
synced 2024-11-21 19:41:04 +00:00
github-actions: Create TestDev.yml
This commit is contained in:
parent
f847a901d0
commit
47bfbd99e8
1 changed files with 47 additions and 0 deletions
47
.github/workflows/TestDev.yml
vendored
Normal file
47
.github/workflows/TestDev.yml
vendored
Normal file
|
@ -0,0 +1,47 @@
|
||||||
|
name: SnapcraftBuild
|
||||||
|
|
||||||
|
# Controls when the workflow will run
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ "dev" ]
|
||||||
|
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
||||||
|
jobs:
|
||||||
|
# This workflow contains a single job called "build"
|
||||||
|
build:
|
||||||
|
# The type of runner that the job will run on
|
||||||
|
runs-on: ubuntu-22.04
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
platform:
|
||||||
|
- amd64
|
||||||
|
- arm64
|
||||||
|
# - i386
|
||||||
|
|
||||||
|
# Steps represent a sequence of tasks that will be executed as part of the job
|
||||||
|
steps:
|
||||||
|
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
repository: etlegacy/etlegacy-snap
|
||||||
|
fetch-depth: 1
|
||||||
|
|
||||||
|
- name: Setup QEMU
|
||||||
|
uses: docker/setup-qemu-action@v3
|
||||||
|
- name: Build SNAP
|
||||||
|
uses: diddlesnaps/snapcraft-multiarch-action@v1.8.0
|
||||||
|
id: snapcraft
|
||||||
|
with:
|
||||||
|
architecture: ${{ matrix.platform }}
|
||||||
|
- name: Publish
|
||||||
|
uses: snapcore/action-publish@v1.2.0
|
||||||
|
env:
|
||||||
|
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_STORE_CREDENTIALS }}
|
||||||
|
with:
|
||||||
|
snap: ${{ steps.snapcraft.outputs.snap }}
|
||||||
|
release: edge
|
||||||
|
# release: stable
|
||||||
|
# release: candidate
|
||||||
|
# release: beta
|
Loading…
Reference in a new issue