Skip to content

Commit

Permalink
zip action
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon-Rey committed Oct 18, 2024
1 parent 12a651d commit c9e7fce
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/releasezip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ jobs:
steps:
# Checkout the repository
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4

# Set up Python environment
- name: Set up Python 3.x
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: '3.x'
python-version: '3.11'

# Install any necessary Python dependencies (e.g., if you use any non-standard libraries)
- name: Install dependencies
Expand All @@ -30,15 +30,6 @@ jobs:
cd scripts
python zipall.py
# Upload files to release
- name: Upload release assets
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./zip/ # Specify the path to the directory containing the generated zips
asset_name: "*.zip" # Name of the file, or use a wildcard for multiple files
asset_content_type: application/zip

# Create a release in GitHub
- name: Create GitHub Release
id: create_release
Expand All @@ -50,3 +41,12 @@ jobs:
release_name: "Release ${{ github.ref }}"
draft: false
prerelease: false

# Upload files to release
- name: Upload release assets
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./zip/ # Specify the path to the directory containing the generated zips
asset_name: "*.zip" # Name of the file, or use a wildcard for multiple files
asset_content_type: application/zip

0 comments on commit c9e7fce

Please sign in to comment.