-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(develop): testing self hosted runners
- Loading branch information
1 parent
b5f27c8
commit ba34f70
Showing
2 changed files
with
59 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
name: Deploy to S3 | ||
|
||
on: | ||
push: | ||
branches: | ||
- develop # Set a branch to deploy | ||
# pull_request: | ||
|
||
jobs: | ||
deploy: | ||
runs-on: [self-hosted] | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: true # Fetch Hugo themes (true OR recursive) | ||
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod | ||
|
||
- name: Hugo setup | ||
uses: peaceiris/[email protected] | ||
with: | ||
hugo-version: '0.132.0' | ||
extended: true | ||
|
||
- name: Replace Placeholder | ||
env: | ||
TRACKING_ID: ${{ secrets.TRACKING_ID }} | ||
run: | | ||
sed -i "s/TRACKING_ID/$TRACKING_ID/g" config/_default/params.yaml | ||
- name: check output | ||
run: | | ||
cat config/_default/params.yaml | ||
# - name: Build | ||
# run: hugo --minify | ||
|
||
# - name: Configure AWS credentials | ||
# uses: aws-actions/configure-aws-credentials@v1-node16 | ||
# with: | ||
# aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
# aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
# aws-region: eu-west-1 | ||
|
||
# - name: Deploy | ||
# run: aws s3 sync --delete ./public s3://${{ secrets.BUCKET_NAME }} | ||
|
||
# - name: Invalidate CloudFront | ||
# uses: chetan/invalidate-cloudfront-action@v2 | ||
# env: | ||
# DISTRIBUTION: ${{ secrets.DISTRIBUTION }} | ||
# PATHS: "/*" | ||
# AWS_REGION: "us-west-1" | ||
# AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
# AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"makefile.configureOnOpen": false | ||
} |