fix cross device rename issue #12
Workflow file for this run
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: Create tagged release | |
on: | |
push: | |
tags: | |
- 'v*' | |
jobs: | |
release-docker-images: | |
runs-on: ubuntu-latest | |
steps: | |
- | |
name: Action Checkout | |
uses: actions/checkout@v3 | |
- | |
name: Set up QEMU | |
uses: docker/setup-qemu-action@v2 | |
- | |
name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- | |
name: Login to Docker Hub | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- | |
name: Build docker images | |
env: | |
PUBLIC_PREFIX: craftmine/server-installer | |
TAG: ${{ github.ref }} | |
run: /usr/bin/env bash ./dockerbuild.sh | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- | |
name: Action Checkout | |
uses: actions/checkout@v3 | |
- | |
name: Setup Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: '1.20' | |
- | |
name: Build binarys | |
env: | |
ASYNC_BUILD: true | |
run: /usr/bin/env bash ./build.sh | |
- | |
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 Release Assets | |
uses: zyxkad/upload-release-asset-dir@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_dir: ./output | |