Skip to content

style: tweak footer ai text #202

style: tweak footer ai text

style: tweak footer ai text #202

Workflow file for this run

name: Deploy systemsobscure.blog
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
timeout-minutes: 10
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 18
- name: Caching Gatsby
uses: actions/cache@v2
with:
path: |
public
.cache
node_modules
key: ${{ runner.os }}-systemsobscure-site-build-${{ github.run_id }}
restore-keys: |
${{ runner.os }}-systemsobscure-site-build-
- name: Install dependencies
run: npm install
- name: Set environment variables
run: |
echo "GATSBY_CODE_DURATIONS_LAMBDA=${{ secrets.GATSBY_CODE_DURATIONS_LAMBDA }}" >> $GITHUB_ENV
echo "GATSBY_CODE_STATS_LAMBDA=${{ secrets.GATSBY_CODE_STATS_LAMBDA }}" >> $GITHUB_ENV
echo "GATSBY_ACTIVITIES_LAMBDA=${{ secrets.GATSBY_ACTIVITIES_LAMBDA }}" >> $GITHUB_ENV
echo "GATSBY_TIME_ENTRIES_LAMBDA=${{ secrets.GATSBY_TIME_ENTRIES_LAMBDA }}" >> $GITHUB_ENV
- name: Build
run: npm run build
- name: Set AWS credentials
uses: aws-actions/configure-aws-credentials@v1
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 to S3
run: npm run deploy
- name: Send custom JSON data to Slack workflow
id: slack
uses: slackapi/[email protected]
with:
payload: |
{
"text": "GitHub Action build result: ${{ job.status }}\n${{ github.event.pull_request.html_url || github.event.head_commit.url }}",
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "GitHub Action build result: ${{ job.status }}\n${{ github.event.pull_request.html_url || github.event.head_commit.url }}"
}
}
]
}