Skip to content

Commit

Permalink
restore github action for release
Browse files Browse the repository at this point in the history
  • Loading branch information
dedece35 committed Oct 4, 2024
1 parent 237250d commit ca189ad
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 20 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/manual_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ jobs:
steps:
- name: Import plugin JAR files
id: import_jar_files
uses: actions/download-artifact@v4.1.7
uses: actions/download-artifact@v3
with:
name: ecocode-plugins
path: lib
Expand Down
36 changes: 17 additions & 19 deletions .github/workflows/tag_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ name: Tag Release
on:
push:
tags:
- '*'
#- '[0-9]+.[0-9]+.[0-9]+'
- '[0-9]+.[0-9]+.[0-9]+'

jobs:
checks:
name: Requirements
Expand Down Expand Up @@ -45,8 +45,8 @@ jobs:
id: export_jar_files
uses: actions/upload-artifact@v3
with:
#name: ecocode-plugins
path: target/ecocode-python-plugin-${{ github.ref_name }}.jar
name: ecocode-plugins
path: target
- name: Export UPLOAD_URL
id: export_upload_url
run: echo "upload_url=${{ steps.create_release.outputs.upload_url }}" >> $GITHUB_OUTPUT
Expand All @@ -58,19 +58,17 @@ jobs:
steps:
- name: Import plugin JAR files
id: import_jar_files
uses: actions/download-artifact@v4.1.7
uses: actions/download-artifact@v3
with:
name: ecocode-plugins
path: target
- name: Upload Release Asset - Python Plugin
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
# name: ecocode-plugins
#path: target
path: ./
if-no-files-found: error
# - name: Upload Release Asset - Python Plugin
# id: upload-release-asset
# uses: actions/upload-release-asset@v1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# upload_url: ${{needs.build.outputs.upload_url}}
# asset_path: target/ecocode-python-plugin-${{ github.ref_name }}.jar
# asset_name: ecocode-python-plugin-${{ github.ref_name }}.jar
# asset_content_type: application/zip
upload_url: ${{needs.build.outputs.upload_url}}
asset_path: target/ecocode-python-plugin-${{ github.ref_name }}.jar
asset_name: ecocode-python-plugin-${{ github.ref_name }}.jar
asset_content_type: application/zip

0 comments on commit ca189ad

Please sign in to comment.