Skip to content

ci: Add automatic publishing #2

ci: Add automatic publishing

ci: Add automatic publishing #2

Workflow file for this run

name: Build Release

Check failure on line 1 in .github/workflows/release.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/release.yml

Invalid workflow file

(Line: 20, Col: 15): There's not enough info to determine what you meant. Add one of these properties: cancel, run, shell, uses, wait, wait-all, with, working-directory, (Line: 22, Col: 20): Unexpected value '', (Line: 23, Col: 15): Unexpected value 'packages', (Line: 24, Col: 15): Unexpected value 'version'
on:
push:
tags:
- "v*"
permissions:
contents: write # required to create releases
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install dependencies
- uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: resvg
version: 1.0
- name: Build
run: |
bash build.sh
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
path: |
dist/*.zip
dist/*.tar.gz
release:
name: Create GitHub Release
runs-on: ubuntu-latest
needs: build
steps:
- name: Download all artifacts
uses: actions/download-artifact@v4
with:
path: build
- name: Create release
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ github.ref_name }}
name: Release ${{ github.ref_name }}
draft: false
prerelease: false
files: dist/**/*