Skip to content

update to use softprops/action-gh-release #86

update to use softprops/action-gh-release

update to use softprops/action-gh-release #86

Workflow file for this run

on:
push:
tags:
- "**"
name: Upload Release Asset
jobs:
build:
name: Upload Release Asset
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@master
- name: Get tag
id: tag
run: echo "tag=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
- name: Build project
run: git archive -o /tmp/git-updater-${{ steps.tag.outputs.tag }}.zip --prefix=git-updater/ ${{ steps.tag.outputs.tag }}
- name: Upload Release Asset
id: upload-release-asset
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: ${{ github.workspace }}/${{ github.event.repository.name }}.zip