experimental tag/release pipeline
This commit is contained in:
parent
5b5bb3afc5
commit
bdee41bc07
|
@ -4,11 +4,12 @@ on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
paths:
|
paths-ignore:
|
||||||
- "config**"
|
- ".**"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release:
|
release:
|
||||||
|
name: Set tag and create release
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
outputs:
|
outputs:
|
||||||
sha256: ${{ steps.archive.outputs.sha256 }}
|
sha256: ${{ steps.archive.outputs.sha256 }}
|
||||||
|
@ -16,34 +17,54 @@ jobs:
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: https://code.forgejo.org/actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Bump version and push tag
|
- name: Bump version and push tag
|
||||||
id: tag
|
id: tag
|
||||||
uses: https://github.com/anothrNick/github-tag-action@afe4b67b57b8ab0908e4767109a5342003639e2e # 1.69.0
|
uses: https://github.com/mathieudutour/github-tag-action@v6.2
|
||||||
env:
|
with:
|
||||||
WITH_V: false
|
github_token: ${{ secrets.FORGEJO_PUSH_TOKEN }}
|
||||||
DEFAULT_BUMP: patch
|
tag_prefix: ""
|
||||||
|
|
||||||
- name: Create release archive
|
- name: Create release archive
|
||||||
id: archive
|
id: archive
|
||||||
run: |
|
run: |
|
||||||
make dist
|
mkdir -p ../dist
|
||||||
|
cp -R * ../dist
|
||||||
|
mv ../dist ./
|
||||||
echo "sha256=$(sha256sum dwm.tar.gz) >> $GITHUB_OUTPUT"
|
echo "sha256=$(sha256sum dwm.tar.gz) >> $GITHUB_OUTPUT"
|
||||||
|
|
||||||
template:
|
- name: Create release
|
||||||
|
uses: https://code.forgejo.org/actions/forgejo-release@v1
|
||||||
|
with:
|
||||||
|
tag: ${{ steps.tag.outputs.new_tag }}
|
||||||
|
direction: upload
|
||||||
|
url: https://git.snaile.de
|
||||||
|
release-dir: ./
|
||||||
|
|
||||||
|
update-template:
|
||||||
|
name: Update xbps-src template
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: release
|
needs: release
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
token: ${{ secrets.FORGEJO_PUSH_TOKEN }}
|
||||||
repository: "https://git.snaile.de/snailed/void-packages"
|
repository: "https://git.snaile.de/snailed/void-packages"
|
||||||
|
|
||||||
- name: Replace checksum and version
|
- name: Replace checksum and version
|
||||||
run: |
|
run: |
|
||||||
sed -i 's/version=[0-9]\+\.[0-9]\+\.[0-9]\+/version=${{ needs.release.outputs.version }}/' srcpkgs/dwm-custom/template
|
sed -i 's/version=[0-9]\+\.[0-9]\+\.[0-9]\+/version=${{ needs.release.outputs.version }}/' srcpkgs/dwm-custom/template
|
||||||
sed -i 's/checksum=.\+/checksum=${{ needs.release.outputs.sha256 }}/' srcpkgs/dwm-custom/template
|
sed -i 's/checksum=.\+/checksum=${{ needs.release.outputs.sha256 }}/' srcpkgs/dwm-custom/template
|
||||||
|
|
||||||
|
- name: Commit
|
||||||
|
uses: https://github.com/stefanzweifel/git-auto-commit-action@3ea6ae190baf489ba007f7c92608f33ce20ef04a # v4.16.0
|
||||||
|
with:
|
||||||
|
commit_user_name: "Johnny5"
|
||||||
|
commit_user_email: "bot@snaile.de"
|
||||||
|
commit_author: "Johnny5 <bot@snaile.de>"
|
||||||
|
commit_message: "dwm-custom: update to ${{ needs.release.outputs.version }}."
|
||||||
|
|
1
dwm.c
1
dwm.c
|
@ -1,3 +1,4 @@
|
||||||
|
// trigerr build
|
||||||
/* See LICENSE file for copyright and license details.
|
/* See LICENSE file for copyright and license details.
|
||||||
*
|
*
|
||||||
* dynamic window manager is designed like any other X client as well. It is
|
* dynamic window manager is designed like any other X client as well. It is
|
||||||
|
|
Loading…
Reference in New Issue