Skip to content

Commit 6887527

Browse files
Update build.yml
1 parent b7618be commit 6887527

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

.github/workflows/build.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
workflow_dispatch:
99
schedule:
1010
# Run the workflow on the 1st of every month at midnight
11-
- cron: '0 0 * * *'
11+
- cron: '0 0 1 * *'
1212

1313
jobs:
1414
build:
@@ -53,8 +53,10 @@ jobs:
5353
id: date
5454
run: echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT
5555

56-
# Create a release on GitHub using Personal Access Token (PAT) - name: Create GitHub Release
57-
- uses: actions/[email protected]
56+
# Create a release on GitHub using Personal Access Token (PAT)
57+
- name: Create GitHub Release
58+
id: create_release # Adding an ID to reference the release step
59+
uses: actions/[email protected]
5860
env:
5961
GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
6062
with:
@@ -65,16 +67,15 @@ jobs:
6567
draft: false
6668
prerelease: false
6769

68-
6970
# Upload the ISO to the GitHub release with a specific, predictable name
7071
- name: Upload ISO to GitHub Release
7172
uses: actions/upload-release-asset@v1
7273
env:
73-
GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }} # Use your PAT here
74+
GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
7475
with:
75-
upload_url: ${{ steps.create_release.outputs.upload_url }}
76-
asset_path: ${{ github.workspace }}/Arch.iso # Keep ISO name as Arch.iso
77-
asset_name: Arch.iso # Set asset name to Arch.iso
76+
upload_url: ${{ steps.create_release.outputs.upload_url }} # Fixing the upload_url reference
77+
asset_path: ${{ github.workspace }}/Arch.iso
78+
asset_name: Arch.iso
7879
asset_content_type: application/octet-stream
7980

8081
- name: Clean Up

0 commit comments

Comments
 (0)