Skip to content

Commit

Permalink
testing my wf
Browse files Browse the repository at this point in the history
  • Loading branch information
apazos committed Dec 26, 2024
1 parent 0a043a0 commit 662d8fc
Showing 1 changed file with 18 additions and 7 deletions.
25 changes: 18 additions & 7 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 @@ -72,15 +72,26 @@ jobs:
retention-days: 30

# Create Release
- name: Create Release
- name: Create Draft Release
uses: softprops/action-gh-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 }}
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.

# Upload Release Asset
- 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
asset_name: riscv-asm
asset_content_type: application/pdf

0 comments on commit 662d8fc

Please sign in to comment.