Skip to content

Commit

Permalink
Refactor file packaging paths in GitHub Actions workflow
Browse files Browse the repository at this point in the history
Updated the file packaging paths to include a new directory structure under "release/mjm918" for better organization. This change affects the tar and zip commands in the compilation steps for Linux, macOS, and Windows platforms.
  • Loading branch information
mjm918 committed Aug 14, 2024
1 parent a35d56f commit 1c8043a
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ on:
branches: [ "master" ]

jobs:

build:
name: Build, Test and Package on All Platforms
strategy:
Expand All @@ -33,17 +32,17 @@ jobs:

- name: Package
run: |
mkdir -p release
mkdir -p release/mjm918
if [[ "${{ matrix.os }}" == "ubuntu-latest" ]]; then
tar -czvf release/${{ github.repository }}_${{ github.run_number }}_linux_amd64.tar.gz ./*
tar -czvf release/mjm918/jerusalem-server_${{ github.run_number }}_linux_amd64.tar.gz ./*
elif [[ "${{ matrix.os }}" == "macos-latest" ]]; then
tar -czvf release/${{ github.repository }}_${{ github.run_number }}_darwin_amd64.tar.gz ./*
tar -czvf release/mjm918/jerusalem-server_${{ github.run_number }}_darwin_amd64.tar.gz ./*
else
zip -r release\\${{ github.repository }}_${{ github.run_number }}_windows_amd64.zip .\\*
zip -r release/mjm918/jerusalem-server_${{ github.run_number }}_windows_amd64.zip ./*
shell: bash

- name: Upload Release Assets
uses: actions/upload-artifact@v3
with:
name: release
path: release
path: release

0 comments on commit 1c8043a

Please sign in to comment.