diff --git a/.forgejo/workflows/build-and-release.yaml b/.forgejo/workflows/build-and-release.yaml index 3689bb7..7212dcf 100644 --- a/.forgejo/workflows/build-and-release.yaml +++ b/.forgejo/workflows/build-and-release.yaml @@ -14,6 +14,9 @@ jobs: - name: Check out repository uses: actions/checkout@v3 + - name: Parse commit hash + run: echo "RELEASE_TAG=$(git rev-parse --short ${{ github.sha }})" >> $GITHUB_ENV + - name: Build CSS run: | mkdir dist @@ -28,7 +31,7 @@ jobs: direction: upload release-dir: dist token: ${{ github.token }} - tag: $(git rev-parse --short ${{ github.sha }}) + tag: $RELEASE_TAG release-notes: | Automatic release triggered by commit ${{ github.sha }} @@ -38,4 +41,4 @@ jobs: THEMES = ${{ steps.build.outputs.themes }} \`\`\` - And download the CSS files from this release to \`\$GITEA_DATA_DIR/gitea/public/css\`. \`themes.tar\` contains all CSS files for convenience. + And download the CSS files from this release to \`\$GITEA_DATA_DIR/gitea/public/css\`. [\`themes.tar\`](/Lea/gitea-themes/releases/download/$RELEASE_TAG/themes.tar) contains all CSS files for convenience.