Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to Foregejo #7

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 16 additions & 15 deletions .github/workflows/build.yaml → .forgejo/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:

jobs:
build_pdf:
runs-on: ubuntu-latest
runs-on: docker
strategy:
matrix:
name:
Expand All @@ -20,27 +20,27 @@ jobs:

steps:
- name: Set up Git repository
uses: actions/checkout@v2
uses: code.forgejo.org/actions/checkout@v4
with:
fetch-depth: "0"

- name: Update git info
run: ./update-git-info.sh

- name: Compile inlay
uses: xu-cheng/latex-action@v3
uses: github.com/xu-cheng/latex-action@v3
with:
root_file: ${{ matrix.name }}-inlay.tex
latexmk_use_xelatex: true

- name: Compile main document
uses: xu-cheng/latex-action@v3
uses: github.com/xu-cheng/latex-action@v3
with:
root_file: ${{ matrix.name }}.tex
latexmk_use_xelatex: true

- name: Upload PDF
uses: actions/upload-artifact@v4
uses: code.forgejo.org/forgejo/upload-artifact@v4
with:
name: ${{ matrix.name }}.pdf
path: ${{ matrix.name }}.pdf
Expand All @@ -53,24 +53,25 @@ jobs:
contents: write
steps:
- name: Set up Git repository
uses: actions/checkout@v2
uses: code.forgejo.org/actions/checkout@v4
with:
fetch-depth: "0"

- name: Download artifacts
uses: actions/download-artifact@v4
uses: code.forgejo.org/forgejo/download-artifact@v4

- name: Build changelog
id: build_changelog
uses: mikepenz/release-changelog-builder-action@v2
uses: github.com/mikepenz/release-changelog-builder-action@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.TOKEN }}

- name: Create Release
uses: ncipollo/release-action@v1
uses: https://code.forgejo.org/actions/[email protected]
with:
artifacts: "artifact/*"
body: ${{ steps.build_changelog.outputs.changelog }}
token: ${{ secrets.GITHUB_TOKEN }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
direction: upload
url: "https://codeberg.org"
release-dir: artifacts
release-notes: ${{ steps.build_changelog.outputs.changelog }}
token: ${{ secrets.TOKEN }}

1 change: 0 additions & 1 deletion .github/FUNDING.yml

This file was deleted.