Skip to content

Commit

Permalink
chore: create releases automatically
Browse files Browse the repository at this point in the history
  • Loading branch information
VictorJorgeFGA committed Jul 28, 2024
1 parent d4da146 commit 2720abf
Showing 1 changed file with 25 additions and 7 deletions.
32 changes: 25 additions & 7 deletions .github/workflows/metrics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,28 @@ jobs:
git commit -m "Adicionando métricas do repositório ${{ github.event.repository.name }} ${{ github.ref_name }}"
git push
# - name: Envia métricas como assets da release
# if: startsWith(github.ref, 'refs/tags')
# uses: AButler/upload-release-assets@v3.0
# with:
# files: 'analytics-raw-data/*'
# repo-token: ${{ secrets.GITHUB_TOKEN }}
# release-tag: ${{ github.ref_name }}
- name: Debugging Information
run: |
echo "GITHUB REF: ${{ github.ref }}"
echo "GITHUB REF_NAME: ${{ github.ref_name }}"
echo "GITHUB EVENT_NAME: ${{ github.event_name }}"
- name: Create Release
if: startsWith(github.ref, 'refs/tags')
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref_name }}
release_name: Release ${{ github.ref_name }}
draft: false
prerelease: false

- name: Envia métricas como assets da release
if: startsWith(github.ref, 'refs/tags')
uses: AButler/upload-release-assets@v3.0
with:
files: 'analytics-raw-data/*'
repo-token: ${{ secrets.GITHUB_TOKEN }}
release-tag: ${{ github.ref_name }}

0 comments on commit 2720abf

Please sign in to comment.