Skip to content

Commit

Permalink
Better artifact uploading + BUILD
Browse files Browse the repository at this point in the history
  • Loading branch information
Willy-JL committed Sep 3, 2024
1 parent b699dc6 commit 15b0e04
Showing 1 changed file with 25 additions and 19 deletions.
44 changes: 25 additions & 19 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
git config --global core.eol lf
- name: "Setup Python"
uses: "actions/setup-python@v4"
uses: "actions/setup-python@v5"
with:
python-version: "${{ matrix.config.python }}"

Expand All @@ -47,7 +47,7 @@ jobs:
# === BUILD ===

- name: "Clone repo"
uses: "actions/checkout@v3"
uses: "actions/checkout@v4"
with:
path: "."

Expand Down Expand Up @@ -104,17 +104,20 @@ jobs:

# === ARTIFACT ===

- name: "Zip artifact"
run: |
cd ./dist/
7z a ../${{ github.event.repository.name }}-${{ runner.os }}.zip .
- name: "Upload commit artifact"
if: "github.event_name != 'release'"
uses: "actions/upload-artifact@v3"
uses: "actions/upload-artifact@v4"
with:
name: "${{ runner.os }}"
path: "./${{ github.event.repository.name }}-${{ runner.os }}.zip"
name: "${{ github.event.repository.name }}-${{ runner.os }}"
path: "./dist/"
compression-level: 9
include-hidden-files: true

- name: "Zip release artifact"
if: "github.event_name == 'release'"
run: |
cd ./dist/
7z a ../${{ github.event.repository.name }}-${{ runner.os }}.zip .
- name: "Upload release artifact"
if: "github.event_name == 'release'"
Expand Down Expand Up @@ -172,17 +175,20 @@ jobs:
# === ARTIFACT ===

- name: "Zip artifact"
run: |
cd ./dist/
7z a ../${{ github.event.repository.name }}-Source.zip .
- name: "Upload commit artifact"
if: "github.event_name != 'release'"
uses: "actions/upload-artifact@v3"
uses: "actions/upload-artifact@v4"
with:
name: "Source"
path: "./${{ github.event.repository.name }}-Source.zip"
name: "${{ github.event.repository.name }}-Source"
path: "./dist/"
compression-level: 9
include-hidden-files: true

- name: "Zip release artifact"
if: "github.event_name == 'release'"
run: |
cd ./dist/
7z a ../${{ github.event.repository.name }}-Source.zip .
- name: "Upload release artifact"
if: "github.event_name == 'release'"
Expand All @@ -207,7 +213,7 @@ jobs:
git config --global core.eol lf
- name: "Clone repo"
uses: "actions/checkout@v3"
uses: "actions/checkout@v4"
with:
path: "."

Expand Down

0 comments on commit 15b0e04

Please sign in to comment.