mirror of https://code.forgejo.org/forgejo/runner
update build action to v5
parent
3382f0b084
commit
80896601aa
|
@ -7,6 +7,12 @@ on:
|
||||||
- Dockerfile
|
- Dockerfile
|
||||||
- .forgejo/workflows/build-release.yml
|
- .forgejo/workflows/build-release.yml
|
||||||
- .forgejo/workflows/build-release-integration.yml
|
- .forgejo/workflows/build-release-integration.yml
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- go.mod
|
||||||
|
- Dockerfile
|
||||||
|
- .forgejo/workflows/build-release.yml
|
||||||
|
- .forgejo/workflows/build-release-integration.yml
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release-simulation:
|
release-simulation:
|
||||||
|
|
|
@ -35,8 +35,7 @@ jobs:
|
||||||
- name: Sanitize the name of the repository
|
- name: Sanitize the name of the repository
|
||||||
id: repository
|
id: repository
|
||||||
run: |
|
run: |
|
||||||
repository="${{ github.repository }}"
|
echo "value=${GITHUB_REPOSITORY##*/}" >> "$GITHUB_OUTPUT"
|
||||||
echo "value=${repository##*/}" >> "$GITHUB_OUTPUT"
|
|
||||||
|
|
||||||
- name: create test TOKEN
|
- name: create test TOKEN
|
||||||
id: token
|
id: token
|
||||||
|
@ -55,8 +54,7 @@ jobs:
|
||||||
- name: version from ref_name
|
- name: version from ref_name
|
||||||
id: tag-version
|
id: tag-version
|
||||||
run: |
|
run: |
|
||||||
version="${{ github.ref_name }}"
|
version=${GITHUB_REF_NAME##*v}
|
||||||
version=${version##*v}
|
|
||||||
echo "value=$version" >> "$GITHUB_OUTPUT"
|
echo "value=$version" >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
- name: release notes
|
- name: release notes
|
||||||
|
@ -72,13 +70,14 @@ jobs:
|
||||||
|
|
||||||
- name: build without TOKEN
|
- name: build without TOKEN
|
||||||
if: ${{ secrets.TOKEN == '' }}
|
if: ${{ secrets.TOKEN == '' }}
|
||||||
uses: https://code.forgejo.org/forgejo/forgejo-build-publish/build@v1
|
uses: https://code.forgejo.org/forgejo/forgejo-build-publish/build@v5
|
||||||
with:
|
with:
|
||||||
forgejo: "${{ env.GITHUB_SERVER_URL }}"
|
forgejo: "${{ env.GITHUB_SERVER_URL }}"
|
||||||
owner: "${{ env.GITHUB_REPOSITORY_OWNER }}"
|
owner: "${{ env.GITHUB_REPOSITORY_OWNER }}"
|
||||||
repository: "${{ steps.repository.outputs.value }}"
|
repository: "${{ steps.repository.outputs.value }}"
|
||||||
doer: root
|
doer: root
|
||||||
tag-version: "${{ steps.tag-version.outputs.value }}"
|
sha: "${{ github.sha }}"
|
||||||
|
release-version: "${{ steps.tag-version.outputs.value }}"
|
||||||
token: ${{ steps.token.outputs.value }}
|
token: ${{ steps.token.outputs.value }}
|
||||||
platforms: linux/amd64,linux/arm64
|
platforms: linux/amd64,linux/arm64
|
||||||
release-notes: "${{ steps.release-notes.outputs.value }}"
|
release-notes: "${{ steps.release-notes.outputs.value }}"
|
||||||
|
@ -88,13 +87,14 @@ jobs:
|
||||||
|
|
||||||
- name: build with TOKEN
|
- name: build with TOKEN
|
||||||
if: ${{ secrets.TOKEN != '' }}
|
if: ${{ secrets.TOKEN != '' }}
|
||||||
uses: https://code.forgejo.org/forgejo/forgejo-build-publish/build@v1
|
uses: https://code.forgejo.org/forgejo/forgejo-build-publish/build@v5
|
||||||
with:
|
with:
|
||||||
forgejo: "${{ env.GITHUB_SERVER_URL }}"
|
forgejo: "${{ env.GITHUB_SERVER_URL }}"
|
||||||
owner: "${{ env.GITHUB_REPOSITORY_OWNER }}"
|
owner: "${{ env.GITHUB_REPOSITORY_OWNER }}"
|
||||||
repository: "${{ steps.repository.outputs.value }}"
|
repository: "${{ steps.repository.outputs.value }}"
|
||||||
doer: "${{ secrets.DOER }}"
|
doer: "${{ secrets.DOER }}"
|
||||||
tag-version: "${{ steps.tag-version.outputs.value }}"
|
sha: "${{ github.sha }}"
|
||||||
|
release-version: "${{ steps.tag-version.outputs.value }}"
|
||||||
token: "${{ secrets.TOKEN }}"
|
token: "${{ secrets.TOKEN }}"
|
||||||
platforms: linux/amd64,linux/arm64
|
platforms: linux/amd64,linux/arm64
|
||||||
release-notes: "${{ steps.release-notes.outputs.value }}"
|
release-notes: "${{ steps.release-notes.outputs.value }}"
|
||||||
|
|
Loading…
Reference in New Issue