Skip to content

Provide a continously updated preview release #3

Provide a continously updated preview release

Provide a continously updated preview release #3

Workflow file for this run

# SPDX-FileCopyrightText: 2024 René de Hesselle <dehesselle@web.de>
#
# SPDX-License-Identifier: GPL-2.0-or-later
name: Latest
on:
push:
jobs:
##############################################################################
build:
uses: ./.github/workflows/build.yml
##############################################################################
deploy:
runs-on: ubuntu-latest
needs: build
steps:
- name: Download disk images
uses: actions/download-artifact@v4
with:
path: ${{ github.workspace }}
merge-multiple: true
- name: Move 'latest' tag here
uses: actions/github-script@v7
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
try {
await github.rest.git.deleteRef({
owner: context.repo.owner,
repo: context.repo.repo,
ref: "tags/latest"
})
}
catch { console.log("no tag to delete") }
await github.rest.git.createRef({
owner: context.repo.owner,
repo: context.repo.repo,
ref: "refs/tags/latest",
sha: context.sha
})
- name: Update the 'latest' pre-release
uses: ncipollo/release-action@v1.14.0
with:
name: latest
artifacts: "mibap*.dmg,Inkscape*.dmg"
tag: latest
body: |
Automatically created and updated development snapshots.
- Built for Apple Silicon and latest macOS.
- Not for production usage!
- Not officially supported by the Inkscape project!
prerelease: true
allowUpdates: true
removeArtifacts: true
token: ${{ secrets.GITHUB_TOKEN }}