This commit is contained in:
parent
a45ef00fe9
commit
1707d0e5fa
@ -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
|
||||
- run: 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"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user