forked from akamai/terraform-provider-akamai
-
Notifications
You must be signed in to change notification settings - Fork 0
78 lines (66 loc) · 2.18 KB
/
deploy_pages.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
name: Deploy static content to Pages
on:
push:
branches: ["my-main"]
workflow_dispatch:
permissions:
contents: write
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Pages
uses: actions/configure-pages@v3
- run: |
mkdir _build
echo "<h1>Hello World!</h1>" > ./_build/index.html
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: './_build'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
- name: generator
run: |
mkdir ttt
cd ttt
curl -L https://github.com/mollie/tf-provider-registry-api-generator/releases/download/v0.3.2/tf-provider-registry-api-generator_0.3.2_Linux_x86_64.tar.gz -o tf-provider-registry-api-generator.tar.gz
tar -xf ./tf-provider-registry-api-generator.tar.gz
ls -la
mv ./tf-provider-registry-api-generator /usr/local/bin/tf-provider-registry-api-generator
chmod +x /usr/local/bin/tf-provider-registry-api-generator
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: "1.20"
- name: Import GPG key
id: import_gpg
uses: crazy-max/ghaction-import-gpg@v6
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.GPG_PASSPHRASE }}
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
version: v1.20.0
args: release --clean
env:
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: dist
run: |
ls -la ./dist/
tree ./dist/
find ./dist -type f
# https://github.com/mollie/tf-provider-registry-api-generator/releases/download/v0.3.2/tf-provider-registry-api-generator_0.3.2_Linux_x86_64.tar.gz