Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
csandanov committed Nov 20, 2020
1 parent 5b397f9 commit 28ff13d
Showing 1 changed file with 8 additions and 21 deletions.
29 changes: 8 additions & 21 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,30 +25,17 @@ jobs:
release:
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
needs: test
steps:
- uses: actions/checkout@v2
- name: prepare artifact
run: cp docker.mk Makefile && tar -czf docker4wordpress.tar.gz docker-compose.yml docker-compose.override.yml mutagen Makefile .env traefik.yml
- uses: octokit/[email protected]
id: get_latest_release
with:
route: GET /repos/:repository/releases/latest
repository: ${{ github.repository }}
- uses: xresloader/upload-to-github-release@v1
id: upload_artifact
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: get upload url
id: get_upload_url
run: |
url=$(echo "$response" | jq -r '.upload_url')
echo "::set-output name=url::$url"
env:
response: ${{ steps.get_latest_release.outputs.data }}
- uses: actions/upload-release-asset@v1
with:
upload_url: ${{steps.get_upload_url.outputs.url}}
asset_path: ./docker4wordpress.tar.gz
asset_name: docker4wordpress.tar.gz
asset_content_type: application/tar+gzip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
needs:
test
file: docker4wordpress.tar.gz
overwrite: true
tags: true
draft: true

0 comments on commit 28ff13d

Please sign in to comment.