Skip to content

Commit

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

on:
push:
branches:
- main
paths:
- 'aws-cost-py/**'

jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633
with:
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}

- name: Extract commit hash
id: extract_hash
run: |
# Extract the hash of the latest commit
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 b772b59

Please sign in to comment.