All checks were successful
Actions / Build and Push Documentation (push) Successful in 15s
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | @​getmeli/cli | devDependencies | pin | [`^1.2.0` -> `1.2.0`](https://renovatebot.com/diffs/npm/@getmeli%2fcli/1.2.0/1.2.0) | | [https://www.coastalcommits.com/actions/env](https://www.coastalcommits.com/actions/env) | action | pinDigest | -> `1791216` | Add the preset `:preserveSemverRanges` to your config if you don't want to pin your dependencies. --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4xNjMuMCIsInVwZGF0ZWRJblZlciI6IjM5LjE2My4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119--> Reviewed-on: https://www.coastalcommits.com/GalacticFactory/PackwizJS/pulls/7 Co-authored-by: Renovate <renovate@coastalcommits.com> Co-committed-by: Renovate <renovate@coastalcommits.com>
49 lines
1.8 KiB
YAML
49 lines
1.8 KiB
YAML
name: Actions
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
docs:
|
|
name: Build and Push Documentation
|
|
runs-on: docker
|
|
container: catthehacker/ubuntu:act-latest@sha256:89367f3c5437699c6b43fa941041725bcc77682a46f2bbe6557541e384d9cedb
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: https://github.com/actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
|
|
- name: Setup Bun
|
|
uses: https://github.com/oven-sh/setup-bun@4bc047ad259df6fc24a6c9b0f9a0cb08cf17fbe5 # v2
|
|
with:
|
|
bun-version: latest
|
|
- name: Install dependencies
|
|
run: bun install --frozen-lockfile
|
|
- name: Set environment variables
|
|
uses: https://www.coastalcommits.com/actions/env@1791216cd180e6578dd1d67fb8d2852b883a5f53 # v2
|
|
- name: Build Documentation
|
|
run: |
|
|
export SITE_URL="https://$CI_ACTION_REF_NAME_SLUG.packwizjs.csw.im"
|
|
bun docs --hostedBaseUrl $SITE_URL --useHostedBaseUrlForAbsoluteLinks true
|
|
- name: Deploy documentation to Meli
|
|
run: |
|
|
GREEN='\033[0;32m'
|
|
YELLOW='\033[0;33m'
|
|
BLUE='\033[0;34m'
|
|
|
|
unset GITHUB_TOKEN
|
|
unset GITLAB_TOKEN
|
|
|
|
echo "${YELLOW}Deploying to ${BLUE}Meli ${YELLOW}on branch ${GREEN}$CI_ACTION_REF_NAME_SLUG${YELLOW}...\n"
|
|
|
|
npx -p "@getmeli/cli" meli upload ./docs/html \
|
|
--url "https://pages.coastalcommits.com" \
|
|
--site "${{ vars.MELI_SITE_ID }}" \
|
|
--token "${{ secrets.MELI_SITE_SECRET }}" \
|
|
--release "$CI_ACTION_REF_NAME_SLUG/${{ env.GITHUB_SHA }}" \
|
|
--branch "$CI_ACTION_REF_NAME_SLUG"
|
|
|
|
echo "\n${YELLOW}Deployed to ${BLUE}Meli ${YELLOW}on branch ${GREEN}$CI_ACTION_REF_NAME_SLUG${YELLOW}!"
|
|
echo "${GREEN}https://$CI_ACTION_REF_NAME_SLUG.packwizjs.csw.im/"
|
|
env:
|
|
GITEA_TOKEN: ${{ github.token }}
|