echo '{"experimental": true}' | sudo tee -a /etc/docker/daemon.json
sudo systemctl restart docker
- name:Run build script
run:sudo ./build.sh
- name:Copy ZIP to current working dir
run:cp deploy/*.zip ./
- name:Debug current working dir
run:ls -la
- name:Release Image to placeholder or release
uses:meeDamian/github-release@v1.0.0
if:startsWith(github.ref, 'refs/tags/')
- name:Create release
id:create_release
uses:actions/create-release@v1
env:
GITHUB_TOKEN:${{ secrets.GITHUB_TOKEN }}
with:
tag_name:${{ github.ref }}
release_name:Release ${{ github.ref }}
draft:false
prerelease:false
- name:Upload image
id:upload-release-asset
uses:actions/upload-release-asset@v1
env:
GITHUB_TOKEN:${{ secrets.GITHUB_TOKEN }}
with:
gzip:false
files:"*.zip"
token:${{ secrets.GITHUB_TOKEN }}
allow_override:true
upload_url:${{ steps.create_release.outputs.upload_url }}# This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps