Skip to content

Commit

Permalink
fix deplay.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mitsugu committed Aug 12, 2024
1 parent 0eef7c2 commit 2f0b72d
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,22 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4.17

- name: Set up Go
uses: actions/setup-go@v4
uses: actions/setup-go@v5.0.2
with:
go-version: ${{ matrix.go-version }}

- name: Build binary
run: |
go build -o output/${{ matrix.os }}/myapp
go build -o output/${{ matrix.os }}/addframe
- name: Archive binary
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4.3.6
with:
name: myapp-${{ matrix.os }}
path: output/${{ matrix.os }}/myapp
name: addframe-${{ matrix.os }}
path: output/${{ matrix.os }}/addframe

deploy:
name: Deploy binaries
Expand All @@ -43,19 +43,19 @@ jobs:
- name: Download binaries
uses: actions/download-artifact@v3
with:
name: myapp-ubuntu-latest
name: addframe-ubuntu-latest

- name: Deploy to GitHub Releases
uses: softprops/action-gh-release@v1
with:
files: output/ubuntu-latest/myapp
files: output/ubuntu-latest/addframe

- name: Download binaries (Windows)
uses: actions/download-artifact@v3
with:
name: myapp-windows-latest
name: addframe-windows-latest

- name: Deploy to GitHub Releases (Windows)
uses: softprops/action-gh-release@v1
with:
files: output/windows-latest/myapp.exe
files: output/windows-latest/addframe.exe

0 comments on commit 2f0b72d

Please sign in to comment.