actions(ci/cd): Add release and sync workflows

This commit is contained in:
marked 2024-11-12 18:59:29 +01:00
parent 6a08d8d7f4
commit ccd4990154
7 changed files with 433 additions and 120 deletions

View file

@ -0,0 +1,25 @@
name: Release
on:
workflow_dispatch:
jobs:
release:
name: Release
runs-on: docker
container:
image: ghcr.io/catthehacker/ubuntu:act-22.04
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Install Rokit
uses: https://github.com/CompeyDev/setup-rokit@v0.1.2
with:
token: ${{ secrets.githubtoken }}
- name: Authorize
run: pesde auth login --token "${{ secrets.pesde_auth_token }}"
- name: Publish
run: pesde publish -y

View file

@ -0,0 +1,42 @@
name: Sync
on:
workflow_dispatch:
schedule:
- cron: "10 0 * * *" # Runs at 00:10 UTC every day
jobs:
release:
name: Release
runs-on: docker
container:
image: ghcr.io/catthehacker/ubuntu:act-22.04
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Install Rokit
uses: https://github.com/CompeyDev/setup-rokit@v0.1.2
with:
token: ${{ secrets.githubtoken }}
- name: Pull Newest Jecs
run: lune run pull.luau
- name: Read Jecs Version
id: read_jecs_version
run: |
version=$(lune run read_version | tr '\n' ' ')
echo "JECS_VERSION=$version" >> $GITHUB_OUTPUT
- name: Create Pull Request
uses: https://github.com/peter-evans/create-pull-request@v7
with:
title: Sync to upstream Jecs ${{ steps.read_jecs_version.outputs.JECS_VERSION }}
body: |
Sync to upstream Jecs ${{ steps.read_jecs_version.outputs.JECS_VERSION }}
- This pull request is **auto-generated**
branch: auto/update-jecs
commit-message: Sync to upstream Jecs ${{ steps.read_jecs_version.outputs.JECS_VERSION }}
base: main
token: ${{ secrets.privileged_forgejo_token }}