Skip to content

Add feature to manipulator service to force encode to target extensio… #34

Add feature to manipulator service to force encode to target extensio…

Add feature to manipulator service to force encode to target extensio… #34

Workflow file for this run

name: Release
on:
push:
tags:
- v\d+.\d+.\d+
jobs:
release:
name: GoReleaser Build & Push
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Fetch Tags
run: git fetch --force --tags
- name: Insert Docker Credentials
run: |
echo '{"registries":[{"user":"${{ secrets.DOCKER_USERNAME }}","pass":"${{ secrets.DOCKER_PASSWORD }}","registry":"docker.io"}]}' > $(pwd)/.docker-creds
- name: Build & Publish
env:
GOLANG_CROSS_VERSION: 1.20.5
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash
run: |
docker run --rm --privileged -v $(pwd):/darkroom \
-v $(pwd)/.docker-creds:/secrets/.docker-creds \
-v /var/run/docker.sock:/var/run/docker.sock \
-w /darkroom \
-e GITHUB_TOKEN \
ghcr.io/goreleaser/goreleaser-cross:v$GOLANG_CROSS_VERSION \
release --clean
release-docs:
name: Publish GH Pages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v1
with:
node-version: '12.x'
- name: Add key to allow access to repository
env:
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
GH_PAGES_DEPLOY: ${{ secrets.CI_DEPLOY_KEY }}
run: |
mkdir -p ~/.ssh
ssh-keyscan github.com >> ~/.ssh/known_hosts
echo "$GH_PAGES_DEPLOY" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
cat <<EOT >> ~/.ssh/config
Host github.com
HostName github.com
IdentityFile ~/.ssh/id_rsa
EOT
- name: Release to GitHub Pages
env:
USE_SSH: true
GIT_USER: git
run: |
cd website
git config --global user.email "[email protected]"
git config --global user.name "gh-actions"
if [ -e yarn.lock ]; then
yarn install --frozen-lockfile
elif [ -e package-lock.json ]; then
npm ci
else
npm i
fi
npx docusaurus deploy