From 2720d84e2f5063d8e4abba19e60716a60b562502 Mon Sep 17 00:00:00 2001 From: Tilak Kumar Date: Wed, 7 Feb 2024 10:46:56 +0530 Subject: [PATCH] first commit --- .github/workflows/releases.yaml | 36 +++++++++++++++++++++++++++++++++ .gitignore | 1 - 2 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/releases.yaml diff --git a/.github/workflows/releases.yaml b/.github/workflows/releases.yaml new file mode 100644 index 0000000..38ec066 --- /dev/null +++ b/.github/workflows/releases.yaml @@ -0,0 +1,36 @@ +name: Releases + +on: + push: + branches: ["main"] + +jobs: + release: + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - name: Check out source code + uses: actions/checkout@v3 + + # Add a step here to convert line endings + - name: Convert line endings + run: | + sudo apt-get update + sudo apt-get install -y dos2unix + dos2unix aws-script.sh + + - name: Tag new version + id: tagger + uses: phish108/autotag-action@v1.1.64 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + bump: minor + with-v: true + release-branch: main + + - name: Create release on Github + uses: ncipollo/release-action@v1 + with: + tag: "v${{ steps.tagger.outputs.new-tag }}" + artifacts: aws-script.sh diff --git a/.gitignore b/.gitignore index 1c2ac54..3faf0fc 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,3 @@ /venv/ logfire-aws-lambda.zip .idea/ -.github