Skip to content

Update publish_on_every_matching_tag.yml #2

Update publish_on_every_matching_tag.yml

Update publish_on_every_matching_tag.yml #2

---
name: "tagged-release"
on:
push:
tags:
- '*'
strategy:

Check failure on line 9 in .github/workflows/publish_on_every_matching_tag.yml

View workflow run for this annotation

GitHub Actions / tagged-release

Invalid workflow file

The workflow is not valid. .github/workflows/publish_on_every_matching_tag.yml (Line: 9, Col: 1): Unexpected value 'strategy'
matrix:
os: [ubuntu-latest]
fail-fast: true
jobs:
tagged-release:
name: "Tagged Release"
runs-on: "ubuntu-latest"
steps:
- name: Check tag
run: |
[[ echo "$GITHUB_REF_NAME" | grep -Pq '^[0-9]+\.[0-9]+.[0-9]+-arch[0-9]*$' ]] || exit 1
- uses: actions/checkout@v4
with:
fetch-depth: '0'
ref: $GITHUB_REF_NAME
- name: Pack archive
run: |
tar -cafv archlinux-linux-$GITHUB_REF_NAME.tar.gz --exclude=.git/ *
sha512sum archlinux-linux-$GITHUB_REF_NAME.tar.gz > archlinux-linux-$GITHUB_REF_NAME.tar.gz.sha512
- name: "Release"
run: |
echo "done!"
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
files: |
archlinux-linux-$GITHUB_REF_NAME.tar.gz
archlinux-linux-$GITHUB_REF_NAME.tar.gz.sha512