Skip to content

Commit 95a5ad2

Browse files
committed
ci: setup release workflow
1 parent a3a7108 commit 95a5ad2

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/release.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- v*
7+
8+
permissions:
9+
contents: read # to fetch code (actions/checkout)
10+
11+
jobs:
12+
push:
13+
permissions:
14+
contents: write
15+
id-token: write
16+
if: github.repository == 'ackama/aws_ec2_environment'
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Harden Runner
20+
uses: step-security/harden-runner@v2
21+
with:
22+
egress-policy: audit
23+
- uses: actions/checkout@v4
24+
with:
25+
persist-credentials: false
26+
- uses: ruby/setup-ruby@v1
27+
with:
28+
ruby-version: '3.2'
29+
bundler-cache: true
30+
- uses: rubygems/release-gem@v1

0 commit comments

Comments
 (0)