Skip to content

Commit

Permalink
Merge pull request #4 from stsquad/automation/fix-draft
Browse files Browse the repository at this point in the history
Make draft releases visible.
  • Loading branch information
stsquad authored Dec 19, 2024
2 parents 3ca9770 + 0dff881 commit c992db3
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 8 deletions.
26 changes: 19 additions & 7 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,30 @@ jobs:
- uses: actions/checkout@v4
- name: Install Tools
run: |
sudo apt update
sudo apt install texlive-full
- name: Build Docs
run: |
make local-all
echo ${{ github.sha }} > Release.txt
- name: Create a Draft Release
uses: softprops/action-gh-release@v2
- name: Create Draft Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
draft: true
name: working-draft
files: |
Release.txt
virtio-v1.4-wd01.pdf
tag_name: virio-msg-draft-v${{ github.run_number }} # Or a more meaningful tag
release_name: Draft ${{ github.run_number }}
draft: false
prerelease: false
- name: 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: virtio-v1.4-wd01.pdf
asset_name: virtio-v1.4-wd01.pdf
asset_content_type: application/pdf
1 change: 0 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: CI

on:
push:
pull_request:

jobs:
Expand Down

0 comments on commit c992db3

Please sign in to comment.