Skip to content

Commit

Permalink
testing
Browse files Browse the repository at this point in the history
draft
generalize rule
mod for test
release field updates
upload assets fixed
  • Loading branch information
apazos committed Dec 26, 2024
1 parent 0a043a0 commit 2a4dc43
Showing 1 changed file with 17 additions and 8 deletions.
25 changes: 17 additions & 8 deletions .github/workflows/build-pdf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ on:
description: Create release as a draft?
required: false
type: boolean
default: false
default: true
pull_request:
push:
branches:
- main
- mywf

jobs:
build:
Expand Down Expand Up @@ -73,14 +73,23 @@ jobs:

# Create Release
- name: Create Release
uses: softprops/action-gh-release@v1
uses: actions/create-release@v1
with:
files: ${{ github.workspace }}/build/*.pdf
tag_name: v${{ steps.version.outputs.version }}
name: Release ${{ steps.version.outputs.version }}
tag_name: draft-${{ steps.date.outputs.date }}-${{ github.sha }}
release_name: Draft release ${{ steps.date.outputs.date }}
body: Latest snapshot (${{ github.sha }})
draft: ${{ github.event.inputs.draft }}
prerelease: ${{ github.event.inputs.prerelease }}
env:
GITHUB_TOKEN: ${{ secrets.GHTOKEN }}
if: github.event_name == 'workflow_dispatch'
# This condition ensures this step only runs for workflow_dispatch events.

- name: Upload release asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: riscv-asm.pdf
asset_name: riscv-asm.pdf
asset_content_type: application/pdf

0 comments on commit 2a4dc43

Please sign in to comment.