Skip to content

Commit

Permalink
new workflow attempted
Browse files Browse the repository at this point in the history
  • Loading branch information
agl-alexglopez committed Jul 10, 2024
1 parent e1aa4f7 commit 968494b
Showing 1 changed file with 6 additions and 21 deletions.
27 changes: 6 additions & 21 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
with:
fetch-depth: 0

- name: Create Release Branch
- name: Clean Repository
run: |
git config user.email "[email protected]"
git config user.name "Alex Lopez"
Expand All @@ -27,33 +27,18 @@ jobs:
git commit -m "Remove unnecessary files for release ${GITHUB_REF#refs/tags/}"
git push origin release-${GITHUB_REF#refs/tags/}
- name: Create Release Zip
run: |
git archive --format=zip --output=release-${GITHUB_REF#refs/tags/}.zip release-${GITHUB_REF#refs/tags/}
ls
- name: Create GitHub Release
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref_name }}
release_name: Release ${{ github.ref }}
body: |
Release Notes:
draft: false
prerelease: false
body: |
Release notes for version ${{ github.ref_name }}.
- name: Upload Release Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: release-${GITHUB_REF#refs/tags/}.zip
asset_name: release-${GITHUB_REF#refs/tags/}.zip
asset_content_type: application/zip

- name: Delete Tag Branch
run: |
Expand Down

0 comments on commit 968494b

Please sign in to comment.