You've already forked documentation
mirror of
https://github.com/armbian/documentation.git
synced 2026-01-06 10:13:36 -08:00
Fix warnings on release workflow (#293)
This commit is contained in:
29
.github/workflows/release.yaml
vendored
29
.github/workflows/release.yaml
vendored
@@ -65,24 +65,19 @@ jobs:
|
||||
id: vars
|
||||
shell: bash
|
||||
run: |
|
||||
echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
|
||||
echo "::set-output name=timenow::$(date +'%Y-%m-%d')"
|
||||
echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
|
||||
echo "timenow=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT
|
||||
- name: Rename release artifact
|
||||
shell: bash
|
||||
run: |
|
||||
mv -v document.pdf armbian-document-${{ steps.vars.outputs.sha_short }}.pdf
|
||||
- name: Create Release
|
||||
id: create_release
|
||||
uses: actions/create-release@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
uses: ncipollo/release-action@v1
|
||||
with:
|
||||
tag_name: ${{ steps.vars.outputs.sha_short }}
|
||||
release_name: ${{ steps.vars.outputs.timenow }}-${{ steps.vars.outputs.sha_short }}
|
||||
tag: ${{ steps.vars.outputs.sha_short }}
|
||||
name: ${{ steps.vars.outputs.timenow }}-${{ steps.vars.outputs.sha_short }}
|
||||
draft: false
|
||||
prerelease: false
|
||||
- name: Upload PDF to releases
|
||||
uses: actions/upload-release-asset@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||
asset_path: document.pdf
|
||||
asset_name: armbian-document-${{ steps.vars.outputs.sha_short }}.pdf
|
||||
asset_content_type: application/pdf
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
artifacts: armbian-document-${{ steps.vars.outputs.sha_short }}.pdf
|
||||
artifactContentType: application/pdf
|
||||
|
||||
Reference in New Issue
Block a user