Compare commits

...

1 Commits

Author SHA1 Message Date
RouxAntoine 24337e9e00
CI : delete old package on master
Main / build (push) Successful in 19s Details
2023-07-13 21:31:03 +02:00
1 changed files with 10 additions and 10 deletions

View File

@ -24,14 +24,16 @@ jobs:
- run: make build VERSION=$RELEASE_VERSION GOOS=linux GOARCH=amd64 GO_BUILD_FLAGS="-tags dev"
if: env.RELEASE_VERSION == 'master'
# - run: |
# echo "$GITHUB_TOKEN" >> secret.txt
# echo "${{ github.actor }}" >> secret.txt
# git config user.name github-actions
# git config user.email github-actions@github.com
# git add .
# git commit -m "generated"
# git push
- name: DELETE old master binary
uses: fjogeleit/http-request-action@v1
with:
url: "https://antoine-roux.tk/projects/api/packages/go/generic/docker-multi-arch-builder/${{ env.RELEASE_VERSION }}"
method: 'DELETE'
continue-on-error: true
username: ${{ github.actor }}
password: ${{ secrets.PACKAGE_PUSH_TOKEN }}
timeout: 20000
if: env.RELEASE_VERSION == 'master'
- name: PUT binary as repository package
id: pushArtifact
@ -41,8 +43,6 @@ jobs:
method: 'PUT'
username: ${{ github.actor }}
password: ${{ secrets.PACKAGE_PUSH_TOKEN }}
# password: ${{ env.GITHUB_TOKEN }}
# customHeaders: '{"Authorization": "token ${{ env.GITHUB_TOKEN }}"'
timeout: 20000
file: "${{ github.workspace }}/bin/docker-multi-arch-builder-linux-amd64"