raise an error if the file does not exist when uploading an artifact
This commit is contained in:
@@ -122,7 +122,7 @@ jobs:
|
|||||||
- name: Extract frontend files from linux-amd64 package
|
- name: Extract frontend files from linux-amd64 package
|
||||||
run: |
|
run: |
|
||||||
New-Item -ItemType Directory -Path package
|
New-Item -ItemType Directory -Path package
|
||||||
tar -xzf (Get-ChildItem artifacts\ezbookkeeping-v*-linux-amd64.tar.gz) -C package
|
tar -xzf (Get-ChildItem artifacts\ezbookkeeping-${{ github.ref_name }}-linux-amd64.tar.gz) -C package
|
||||||
|
|
||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@v6
|
uses: actions/setup-go@v6
|
||||||
@@ -176,7 +176,8 @@ jobs:
|
|||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: ezbookkeeping-${{ github.ref_name }}-windows-x64
|
name: ezbookkeeping-${{ github.ref_name }}-windows-x64
|
||||||
path: ezbookkeeping-v*-windows-x64.zip
|
path: ezbookkeeping-${{ github.ref_name }}-windows-x64.zip
|
||||||
|
if-no-files-found: error
|
||||||
|
|
||||||
publish-release:
|
publish-release:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|||||||
@@ -121,7 +121,7 @@ jobs:
|
|||||||
- name: Extract frontend files from linux-amd64 package
|
- name: Extract frontend files from linux-amd64 package
|
||||||
run: |
|
run: |
|
||||||
New-Item -ItemType Directory -Path package
|
New-Item -ItemType Directory -Path package
|
||||||
tar -xzf (Get-ChildItem artifacts\ezbookkeeping-dev-*-linux-amd64.tar.gz) -C package
|
tar -xzf (Get-ChildItem artifacts\ezbookkeeping-dev-${{ github.run_id }}-linux-amd64.tar.gz) -C package
|
||||||
|
|
||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@v6
|
uses: actions/setup-go@v6
|
||||||
@@ -174,4 +174,5 @@ jobs:
|
|||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: ezbookkeeping-dev-${{ github.run_id }}-windows-x64
|
name: ezbookkeeping-dev-${{ github.run_id }}-windows-x64
|
||||||
path: ezbookkeeping-dev-*-windows-x64.zip
|
path: ezbookkeeping-dev-${{ github.run_id }}-windows-x64.zip
|
||||||
|
if-no-files-found: error
|
||||||
|
|||||||
Reference in New Issue
Block a user