Skip to content

Commit

Permalink
add: create release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
nataliagranato authored Mar 20, 2024
1 parent f91e618 commit 88d3337
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Release

on:
push:
branches:
- main

jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Extract commit hash
id: extract_hash
run: |
HASH=$(git rev-parse HEAD)
echo "Commit hash: $HASH"
echo "::set-output name=hash::$HASH"
- name: Create Release
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ steps.extract_hash.outputs.hash }}
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
env:
TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}

0 comments on commit 88d3337

Please sign in to comment.