Skip to content

build: Release updated versions #5

build: Release updated versions

build: Release updated versions #5

Workflow file for this run

name: "Build"
on:
push:
branches:
- "master"
schedule:
- cron: "0 6 * * 5"
workflow_dispatch:
jobs:
ubuntu-22:
name: "Build (Ubuntu 22)"
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Fix grub-efi-amd64 error
run: |
sudo apt remove shim-signed grub-efi-amd64-bin -y --allow-remove-essential
- name: Prepare for setup
run: sudo sh prepare-ubuntu.sh
- name: Build Proveasio'ned environment
working-directory: ./ansible
run: ansible-playbook -i inventory.yml setup-ubuntu.yml
ubuntu-24:
name: "Build (Ubuntu 24)"
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Fix grub-efi-amd64 error
run: |
sudo apt remove shim-signed grub-efi-amd64-bin -y --allow-remove-essential
- name: Prepare for setup
run: sudo sh prepare-ubuntu.sh
- name: Build Proveasio'ned environment
working-directory: ./ansible
run: ansible-playbook -i inventory.yml setup-ubuntu.yml
- name: Push latest tag
run: |
git config user.name "GitHub Actions"
git config user.email "github-actions@users.noreply.github.com"
git tag latest -f
git push origin latest -f
- name: Get previous tag
id: previousTag
run: |
name=$(git --no-pager tag --sort=creatordate --merged ${{ github.ref_name }} | tail -2 | head -1)
echo "previousTag: $name"
echo "previousTag=$name" >> $GITHUB_ENV
- name: Generate CHANGELOG
id: changelog
uses: requarks/changelog-action@v1
with:
token: ${{ github.token }}
fromTag: latest
toTag: ${{ env.previousTag }}
- name: Create Pre-Release
uses: ncipollo/release-action@v1.12.0
with:
allowUpdates: true
draft: false
makeLatest: true
tag: latest
prerelease: true
name: ${{ github.ref_name }}
body: ${{ steps.changelog.outputs.changes }}
token: ${{ github.token }}
- name: Commit CHANGELOG.md
uses: stefanzweifel/git-auto-commit-action@v4
with:
branch: ${{ github.ref_name }}
commit_message: "docs: update CHANGELOG.md for ${{ github.ref_name }}"
file_pattern: CHANGELOG.md