Man page release workflow wip

This commit is contained in:
Mike Farah 2021-10-20 18:45:14 +11:00
parent ee376fdfd2
commit 9c98d3effe

View File

@ -23,9 +23,6 @@ jobs:
id: gen-man-page id: gen-man-page
env: env:
MAN_HEADER: yq (https://github.com/mikefarah/yq/) version ${{ github.ref }} MAN_HEADER: yq (https://github.com/mikefarah/yq/) version ${{ github.ref }}
outputs:
manpage:
value: yq.1
with: with:
args: >- args: >-
--standalone --standalone
@ -42,24 +39,26 @@ jobs:
sudo apt-get install rhash -y sudo apt-get install rhash -y
go get github.com/mitchellh/gox go get github.com/mitchellh/gox
mkdir -p build mkdir -p build
cp ${{ steps.gen-man-page.outputs.manpage }} build/yq.1 pwd
ls
cp yq.1 build/yq.1
./scripts/xcompile.sh ./scripts/xcompile.sh
# - name: Create Release - name: Create Release
# id: create_release id: create_release
# uses: actions/create-release@v1.0.0 uses: actions/create-release@v1.0.0
# env: env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with: with:
# tag_name: ${{ github.ref }} tag_name: ${{ github.ref }}
# release_name: TEST ${{ github.ref }} release_name: TEST ${{ github.ref }}
# draft: true draft: true
# prerelease: false prerelease: false
# - uses: shogo82148/actions-upload-release-asset@v1 - uses: shogo82148/actions-upload-release-asset@v1
# with: with:
# upload_url: ${{ steps.create_release.outputs.upload_url }} upload_url: ${{ steps.create_release.outputs.upload_url }}
# asset_path: build/* asset_path: build/*
# publishDocker: # publishDocker:
# environment: dockerhub # environment: dockerhub