This commit is contained in:
Fabio Belavenuto
2022-07-16 19:02:15 -03:00
parent da93438455
commit 8091c22402
2 changed files with 4 additions and 27 deletions

View File

@@ -1,28 +1,17 @@
name: Build image
# Controls when the workflow will run
on:
# Push
push:
branches:
- main
tags:
- v*
# Allows you to run this workflow manually from the Actions tab
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-latest
# 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@v3
# Check cache
@@ -104,16 +93,6 @@ jobs:
zip -9 "arpl-${{ steps.build.outputs.VERSION }}.img.zip" arpl.img
zip -9 "arpl-${{ steps.build.outputs.VERSION }}.vmdk.zip" arpl.vmdk
# Upload artifact
- name: Upload
uses: actions/upload-artifact@v3
with:
name: Images
path: |
arpl.img
arpl.vmdk
retention-days: 1
# Publish a release if is a tag
- name: Release
uses: softprops/action-gh-release@v1