🤞 Merge pull request #4 from creeperita09/main #11
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Continuous release | |
on: | |
push: | |
branches: [main] | |
jobs: | |
build: | |
uses: ./.github/workflows/compile.yml | |
release: | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/download-artifact@v3 | |
with: | |
name: cc-rpc-linux-amd64 | |
path: bin | |
- uses: actions/download-artifact@v3 | |
with: | |
name: cc-rpc-macos-amd64 | |
path: bin | |
- uses: actions/download-artifact@v3 | |
with: | |
name: cc-rpc-macos-arm64 | |
path: bin | |
- uses: actions/download-artifact@v3 | |
with: | |
name: cc-rpc-win-amd64.exe | |
path: bin | |
- name: Display structure of downloaded files | |
run: ls -R | |
working-directory: bin | |
- name: Upload to continuous release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
set -e | |
ls -lh bin/* | |
wget -c https://github.com/probonopd/uploadtool/raw/master/upload.sh | |
bash upload.sh bin/* |