diff --git a/.gitea/workflows/zip.yaml b/.gitea/workflows/zip.yaml index 21a2da2..5aa5eb3 100644 --- a/.gitea/workflows/zip.yaml +++ b/.gitea/workflows/zip.yaml @@ -22,10 +22,11 @@ jobs: run: git lfs checkout - name: Get current repo - run: echo "REPO_NAME=$(basename $GITHUB_REPOSITORY)" >> $GITHUB_ENV + id: repo + run: echo "::set-output name=repo::$(result=$(echo "basename $GITHUB_REPOSITORY")" - name: Zip repository - run: zip -r ${{ vars.REPO_NAME }}-${{ steps.date.outputs.date }}.zip -x "*.git*" + run: zip -r {{ steps.repo.outputs.repo }}-${{ steps.date.outputs.date }}.zip . -x "*.git*" - name: Release artifacts to Gitea repository uses: akkuman/gitea-release-action@v1 @@ -33,6 +34,6 @@ jobs: NODE_OPTIONS: '--experimental-fetch' # if nodejs < 18 with: files: |- - ${{ vars.REPO_NAME }}-${{ inputs.version }}.zip + {{ steps.repo.outputs.repo }}-${{ inputs.version }}.zip tag_name: ${{ inputs.version }} name: Release - ${{ inputs.version }} \ No newline at end of file