diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 7f9bed5..8cb29df 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -3,14 +3,14 @@ name: Continuous Deployment on: push: tags: - - '*' - + - "*" + jobs: publish-github: name: Publish on Github runs-on: windows-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Build run: | $Env:PATH = "${Env:USERPROFILE}\go\bin;${Env:PATH}" @@ -38,7 +38,7 @@ jobs: - name: Upload the release uses: softprops/action-gh-release@v1 with: - body_path: body.txt + body_path: body.txt files: | out_amd64/wsldl.exe out_amd64/icons.zip diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ae2934a..4ab0ec2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,30 +3,30 @@ name: Continuous Integration on: push: paths: - - 'src/**' - - 'res/**' - - 'build.bat' - - '.github/workflows/**' + - "src/**" + - "res/**" + - "build.bat" + - ".github/workflows/**" pull_request: paths: - - 'src/**' - - 'res/**' - - 'build.bat' - - '.github/workflows/**' - + - "src/**" + - "res/**" + - "build.bat" + - ".github/workflows/**" + jobs: compile-wsldl-windows: name: Compile wsldl runs-on: windows-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Build run: | $short_sha = $env:GITHUB_SHA.SubString(0, 7) $Env:GO_BUILD_OPTS = "-ldflags `"-X github.com/yuk7/wsldl/version.version=CI-${short_sha}`"" .\build.bat all Compress-Archive -Path .\out\icons\* -DestinationPath .\out\icons.zip - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v4 with: name: Build results-Windows path: | @@ -37,7 +37,7 @@ jobs: name: Compile wsldl ARM64 runs-on: windows-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Build run: | $Env:PATH = "${Env:USERPROFILE}\go\bin;${Env:PATH}" @@ -46,7 +46,7 @@ jobs: $Env:GOARCH="arm64" .\build.bat all Compress-Archive -Path .\out\icons\* -DestinationPath .\out\icons.zip - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v4 with: name: Build results-Windows-ARM64 path: | @@ -57,7 +57,7 @@ jobs: name: Cross-compile wsldl from Linux runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Build run: | go install github.com/josephspurrier/goversioninfo/cmd/goversioninfo@latest @@ -65,7 +65,7 @@ jobs: cd src goversioninfo env GOOS=windows GOARCH=amd64 go build -ldflags "-X github.com/yuk7/wsldl/version.version=CI-Cross-${GITHUB_SHA:0:7}" - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v4 with: name: Build results-Linux path: |