forked from fastlane/fastlane
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrelease_step_2_create_github_release.yml
More file actions
63 lines (53 loc) · 1.52 KB
/
release_step_2_create_github_release.yml
File metadata and controls
63 lines (53 loc) · 1.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
---
name: Release Step 2 - Create GitHub Release
on:
push:
tags:
- '*'
workflow_dispatch:
inputs:
skip_github_packages:
description: 'Skip pushing to GitHub Packages'
required: true
default: false
type: boolean
skip_rubygems:
description: 'Skip pushing to RubyGems'
required: true
default: false
type: boolean
jobs:
create_github_release:
runs-on: macos-latest
permissions:
packages: write
contents: write
id-token: write
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.2'
- name: Install fastlane
run: bundle install
- uses: rubygems/configure-rubygems-credentials@v1.0.0
- name: Configure GitHub Packages config
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
mkdir -p ~/.gem
echo ":github: Bearer $GITHUB_TOKEN" > ~/.gem/credentials
chmod 0600 ~/.gem/credentials
- name: Run fastlane
env:
FASTLANE_RELEASE_API_BEARER: ${{ secrets.GITHUB_TOKEN }}
SLACK_URL: ${{ secrets.SLACK_URL }}
run: |
bundle exec fastlane create_github_release skip_github_packages:${{ github.event.inputs.skip_github_packages }} skip_rubygems:${{ github.event.inputs.skip_rubygems }}
- uses: actions/upload-artifact@v6
with:
name: release_tag
path: latest_fl_version.txt
retention-days: 1