-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (45 loc) · 1.45 KB
/
push.yaml
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
name: Build go-aws-lambda-sdk
on:
workflow_dispatch:
push:
branches:
- 'main'
# allow only one concurrent build
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false
permissions:
contents: write
jobs:
prepare:
name: Prepare build
runs-on: ubuntu-latest
outputs:
version: ${{ steps.version.outputs.version }}
steps:
- uses: actions/checkout@v4
- name: Get next version
uses: reecetech/version-increment@2023.10.2
id: version
with:
scheme: "calver"
increment: "patch"
use_api: "true"
build:
name: Build and release go-aws-lambda-sdk
runs-on: ubuntu-latest
needs: prepare
outputs:
cicd-bot-telegram-token: ${{ steps.prepare-secrets.outputs.cicd-bot-telegram-token }}
cicd-bot-telegram-chat-id: ${{ steps.prepare-secrets.outputs.cicd-bot-telegram-chat-id }}
steps:
- uses: actions/checkout@v4
- uses: fregante/setup-git-user@v2
- name: build and tag library release
shell: bash
env:
VERSION: ${{ needs.prepare.outputs.version }}
run: |-
git remote set-url origin https://${{ secrets.GITHUB_TOKEN }}@github.com/simple-container-com/go-aws-lambda-sdk.git
bash <(curl -Ls "https://welder.simple-container.com/welder.sh") make --timestamps
bash <(curl -Ls "https://welder.simple-container.com/welder.sh") deploy -e prod --timestamps