Skip to content

Commit

Permalink
meetup 7/11/24
Browse files Browse the repository at this point in the history
  • Loading branch information
Masterjx9 committed Jul 12, 2024
1 parent 22a10de commit d95e9a1
Showing 1 changed file with 30 additions and 18 deletions.
48 changes: 30 additions & 18 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,15 @@ jobs:
- name: Zip the manage folder
run: |
cd dist
Compress-Archive -Path manage -DestinationPath manage.zip
Move-Item -Path manage.zip -Destination $env:GITHUB_WORKSPACE
Compress-Archive -Path manage -DestinationPath manage-windows.zip
Move-Item -Path manage-windows.zip -Destination $env:GITHUB_WORKSPACE
cd ..
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: SocialMediaScheduler
path: $env:GITHUB_WORKSPACE\manage.zip
name: SocialMediaScheduler-windows
path: $env:GITHUB_WORKSPACE\manage-windows.zip


build-linux:
Expand Down Expand Up @@ -92,15 +92,15 @@ jobs:
- name: Zip the manage folder
run: |
cd dist
zip -r manage.zip manage
mv manage.zip $GITHUB_WORKSPACE
zip -r manage-linux.zip manage
mv manage-linux.zip $GITHUB_WORKSPACE
cd ..
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: SocialMediaScheduler
path: ${{ github.workspace }}/manage.zip
name: SocialMediaScheduler-linux
path: ${{ github.workspace }}/manage-linux.zip

build-mac:
runs-on: macos-latest
Expand Down Expand Up @@ -138,15 +138,15 @@ jobs:
- name: Zip the manage folder
run: |
cd dist
zip -r manage.zip manage
mv manage.zip $GITHUB_WORKSPACE
zip -r manage-mac.zip manage
mv manage-mac.zip $GITHUB_WORKSPACE
cd ..
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: SocialMediaScheduler
path: ${{ github.workspace }}/manage.zip
name: SocialMediaScheduler-mac
path: ${{ github.workspace }}/manage-mac.zip


create_release:
Expand All @@ -157,11 +157,23 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v2

- name: Download build artifact
- name: Download build artifacts
uses: actions/download-artifact@v2
with:
name: SocialMediaScheduler
path: .
name: SocialMediaScheduler-windows
path: ./windows

- name: Download build artifacts
uses: actions/download-artifact@v2
with:
name: SocialMediaScheduler-linux
path: ./linux

- name: Download build artifacts
uses: actions/download-artifact@v2
with:
name: SocialMediaScheduler-mac
path: ./mac

- name: Generate release name and tag
id: generate_release_info
Expand Down Expand Up @@ -194,7 +206,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: manage.zip
asset_path: ./windows/manage-windows.zip
asset_name: SocialMediaScheduler-windows.zip
asset_content_type: application/zip

Expand All @@ -204,7 +216,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: manage.zip
asset_path: ./linux/manage-linux.zip
asset_name: SocialMediaScheduler-linux.zip
asset_content_type: application/zip

Expand All @@ -214,6 +226,6 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: manage.zip
asset_path: ./mac/manage-mac.zip
asset_name: SocialMediaScheduler-mac.zip
asset_content_type: application/zip

0 comments on commit d95e9a1

Please sign in to comment.