Packagist reads a mirror that only has the tags
This commit is contained in:
1 parent
afad275408
commit
62602a9843
4 files changed
+34
-3
No files matched your search
@@ -66,11 +66,32 @@ jobs:
|
||||
GT_TOKEN: ${{ secrets.DEPLOY_TOKEN }}
|
||||
COMMIT_HASH: ${{ github.sha }}
|
||||
|
||||
# Packagist shows every branch of the repository it reads as a dev version (dev-develop, dev-feature/...), and
|
||||
# that cannot be switched off. So it reads a mirror that only has the tags: this puts them there.
|
||||
mirror:
|
||||
runs-on: docker
|
||||
needs: tag
|
||||
container:
|
||||
image: webdevops/php:8.4
|
||||
steps:
|
||||
- name: checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: push the tags
|
||||
run: |
|
||||
git config --global --add safe.directory "$(pwd)"
|
||||
git config --local --unset-all http.https://git.iriks.casa/.extraheader || true
|
||||
git -c http.extraheader="Authorization: token ${GT_TOKEN}" push https://git.iriks.casa/iriks-it/laravel-manager-packagist.git 'refs/tags/v*:refs/tags/v*'
|
||||
env:
|
||||
GT_TOKEN: ${{ secrets.DEPLOY_TOKEN }}
|
||||
|
||||
# Needs the secrets PACKAGIST_USERNAME and PACKAGIST_TOKEN on the repository, and the package
|
||||
# submitted on packagist.org once. Without them this step only says so.
|
||||
packagist:
|
||||
runs-on: docker
|
||||
needs: tag
|
||||
needs: [tag, mirror]
|
||||
container:
|
||||
image: webdevops/php:8.4
|
||||
steps:
|
||||
@@ -82,7 +103,7 @@ jobs:
|
||||
env:
|
||||
PACKAGIST_USERNAME: ${{ secrets.PACKAGIST_USERNAME }}
|
||||
PACKAGIST_TOKEN: ${{ secrets.PACKAGIST_TOKEN }}
|
||||
PACKAGE_URL: https://git.iriks.casa/iriks-it/laravel-manager
|
||||
PACKAGE_URL: https://git.iriks.casa/iriks-it/laravel-manager-packagist
|
||||
|
||||
# Last: merge what was released into develop. Runs even when Packagist could not be told.
|
||||
sync-develop:
|
||||
|
||||
Reference in new issue
Block a user