Skip to content

Switch marvinpinto/action-automatic-releases@latest to softprops/acti… #35

Switch marvinpinto/action-automatic-releases@latest to softprops/acti…

Switch marvinpinto/action-automatic-releases@latest to softprops/acti… #35

Workflow file for this run

name: release
on:
push:
branches:
- "master"
tags:
- "v*"
jobs:
build:
name: build
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4
- name: Install resvg
run: |
# Why Ubuntu uses legacy version of resvg?
mkdir bin
cd bin
# depName=RazrFalcon/resvg
RESVG_VERSION="v0.41.0"
wget "https://github.com/RazrFalcon/resvg/releases/download/${RESVG_VERSION}/resvg-linux-x86_64.tar.gz"
tar xf resvg-linux-x86_64.tar.gz
cd ..
- name: build
run: |
PATH="./bin/:$PATH" ./build.sh
- name: pre-release
uses: softprops/[email protected]
if: "! startsWith(github.ref, 'refs/tags/')"
with:
tag_name: "latest"
prerelease: true
name: "Development Build"
files: |
target/*
resources.tar
- name: tagged-release
uses: softprops/[email protected]
if: startsWith(github.ref, 'refs/tags/')
with:
prerelease: false
files: |
target/*
resources.tar