-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlegacy.yml
More file actions
36 lines (30 loc) · 1021 Bytes
/
legacy.yml
File metadata and controls
36 lines (30 loc) · 1021 Bytes
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
# Legacy version of the action that can be used independently of this plugin
name: Build
on:
push:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# https://stackoverflow.com/questions/58033366/how-to-get-the-current-branch-within-github-actions
- name: Extract branch name
shell: bash
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
id: extract_branch
- name: Use Go 1.13
uses: actions/setup-go@v5.0.1
with:
go-version: 1.13.x
- uses: jaxxstorm/action-install-gh-release@v1.12.0
with:
repo: tmedwards/tweego
chmod: 0775
- run : tweego source -o index.html
- name: Deploy to Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
publish_dir: ./
destination_dir: ${{ steps.extract_branch.outputs.branch }}