You've already forked ugly-queue
fix: Fixing CI. Separate flow for upload 👷🔥️
This commit is contained in:
22
.github/workflows/build.yml
vendored
22
.github/workflows/build.yml
vendored
@@ -4,29 +4,13 @@ on:
|
||||
branches:
|
||||
- "**"
|
||||
tags:
|
||||
- " !**"
|
||||
- "!**"
|
||||
|
||||
jobs:
|
||||
release:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: '1.22'
|
||||
# - name: Install gitea provider for Go Semantic Release
|
||||
# run: |
|
||||
# mkdir -p .semrel/$(go env GOOS)_$(go env GOARCH)/provider-gitea/${GITEA_PROVIDER_VER}/ && \
|
||||
# wget https://github.com/cybercinch/go-semantic-release-provider-gitea/releases/download/v${GITEA_PROVIDER_VER}/go-semantic-release-provider-gitea_v${GITEA_PROVIDER_VER}_linux_amd64 \
|
||||
# -O .semrel/$(go env GOOS)_$(go env GOARCH)/provider-gitea/${GITEA_PROVIDER_VER}/gitea && \
|
||||
# chmod a+x .semrel/$(go env GOOS)_$(go env GOARCH)/provider-gitea/${GITEA_PROVIDER_VER}/gitea
|
||||
# env:
|
||||
# GITEA_PROVIDER_VER: 1.0.11
|
||||
# - uses: "shivammathur/setup-php@v2"
|
||||
# with:
|
||||
# php-version: "7.4"
|
||||
# - uses: "ramsey/composer-install@v3"
|
||||
|
||||
- name: Create Release Archive
|
||||
id: semrelease
|
||||
uses: go-semantic-release/action@v1
|
||||
@@ -36,6 +20,4 @@ jobs:
|
||||
env:
|
||||
GITEA_TOKEN: ${{ secrets.G_TOKEN }}
|
||||
GITEA_HOST: ${{ secrets.G_SERVER_URL}}
|
||||
env:
|
||||
GITEA_TOKEN: ${{ secrets.G_TOKEN }}
|
||||
GITEA_HOST: ${{ secrets.G_SERVER_URL}}
|
||||
|
||||
|
||||
22
.github/workflows/dist.yml
vendored
Normal file
22
.github/workflows/dist.yml
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
name: Create Distribution
|
||||
run-name: Distribute composer package with Gitea Actions 🚀
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- 'v*'
|
||||
|
||||
jobs:
|
||||
dist:
|
||||
name: Create Archive
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4 # Checkout Sourcecode
|
||||
- uses: https://hub.cybercinch.nz/cybercinch/composer-build-action@main
|
||||
- uses: https://hub.cybercinch.nz/guisea/gitea-composer-upload-action@main
|
||||
with:
|
||||
base_url: "${{ secrets.G_SERVER_URL}}"
|
||||
access_token: "${{ secrets.G_TOKEN }}"
|
||||
username: "${{ secrets.G_USERNAME }}"
|
||||
owner: "cybercinch" # Override owner name for repository (Optional)
|
||||
package_version: "${{ env.GITHUB_REF_NAME }}"
|
||||
|
||||
Reference in New Issue
Block a user