Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2.0 Release: Allow spin to configure production servers #24

Merged
merged 226 commits into from
Jan 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
226 commits
Select commit Hold shift + click to select a range
977d57b
Initial commit for 2.0 release
jaydrogers Apr 24, 2023
68dd945
Initial commit of the docs site
danpastori May 2, 2023
a1e1f57
Ignore docs on NPM
jaydrogers May 3, 2023
c04a4b6
Ignore unnecessary files on packaging
jaydrogers May 3, 2023
c7a535e
Added CloudFlare pages
jaydrogers Jun 7, 2023
aa77573
Test deployment
jaydrogers Jun 7, 2023
d2e78f4
Remove CF Pages Actions
jaydrogers Jun 7, 2023
d99f288
Added node version
jaydrogers Jun 7, 2023
4f34092
Updated OG data
jaydrogers Jun 7, 2023
03c24c7
Added social image
jaydrogers Jun 7, 2023
c2545af
Added macOS installation instructions
jaydrogers Jun 7, 2023
079dbc3
Added Windows instructions
jaydrogers Jun 7, 2023
3745a98
Added linux instructions
jaydrogers Jun 7, 2023
2c54b78
Original documents for composer and yarn
jaydrogers Jun 7, 2023
05deec0
Changed to PHP 8.2 (#28)
jaydrogers Jun 7, 2023
e9c9751
Fixed function reference
jaydrogers Jun 19, 2023
78d1746
Added command reference
jaydrogers Jun 23, 2023
c6b8987
Added simple templates
jaydrogers Jun 23, 2023
a5db083
Updated templates
jaydrogers Jun 28, 2023
ea5fd21
Added "spin stop"
jaydrogers Jun 28, 2023
bb5e7a0
Clarified error
jaydrogers Jun 28, 2023
f8d930c
Fixed upgrade call
jaydrogers Jun 28, 2023
17eb9cc
Fixed spin stop and spin kill logic
jaydrogers Jun 28, 2023
160155c
Removed quotes to prevent from command not running correctly
jaydrogers Jun 29, 2023
d4317de
Clarified Linux install notes
jaydrogers Aug 29, 2023
283f801
Clarity adjustment
jaydrogers Aug 29, 2023
ee1c470
Merge branch 'release/2.0' of github.com:serversideup/spin into relea…
jaydrogers Sep 14, 2023
db94a1c
Restructured files
jaydrogers Sep 22, 2023
2bc3b79
Set permissions
jaydrogers Sep 22, 2023
7c16a8e
Fixed actions reference
jaydrogers Sep 22, 2023
53fad87
Moved variable
jaydrogers Sep 22, 2023
3bf9681
Updated "spin new" and added "spin latest"
jaydrogers Sep 25, 2023
54a020e
Added improved CI workflow
jaydrogers Sep 26, 2023
3d30232
Changed to Discord
jaydrogers Sep 27, 2023
f44d252
Added help
jaydrogers Sep 27, 2023
f610118
Improved update logic
jaydrogers Sep 27, 2023
7afe34e
Improved logic
jaydrogers Sep 27, 2023
fd51d12
Renamed cache files
jaydrogers Sep 27, 2023
ed71447
Added prompt to check for updates
jaydrogers Sep 27, 2023
2dd3bf3
Improved interval function
jaydrogers Sep 27, 2023
a1c026f
Fixed save_current_time_to_cache_file function
jaydrogers Sep 27, 2023
3280dd6
Lots of improvements and sanity checks
jaydrogers Sep 27, 2023
58e124a
Prevent commands for checking for a compose file
jaydrogers Sep 28, 2023
c909273
Organized function
jaydrogers Sep 28, 2023
78fb099
Added installation detection
jaydrogers Sep 28, 2023
d7f14fc
Improved updating
jaydrogers Sep 28, 2023
093195f
Added example configuration
jaydrogers Sep 28, 2023
02e5679
Organized templates
jaydrogers Sep 28, 2023
eae705c
Moved template files
jaydrogers Sep 28, 2023
9fcf322
Renamed tempalte
jaydrogers Sep 28, 2023
d215d95
Updated install script
jaydrogers Sep 28, 2023
9c55eff
Fixed compose check logic
jaydrogers Sep 28, 2023
eb616a4
Removed escape
jaydrogers Sep 28, 2023
bf5c025
Support pull cache for multiple projects
jaydrogers Oct 2, 2023
607c86d
Improved pulling experience
jaydrogers Oct 2, 2023
91aac50
Added Spin Pull command
jaydrogers Oct 2, 2023
92c61f2
Updated description
jaydrogers Oct 2, 2023
3f287ac
Remove compose check for spin kill
jaydrogers Oct 10, 2023
5bc3ce8
Added prune command
jaydrogers Oct 10, 2023
2cb9565
Fix cache creation bug
jaydrogers Oct 16, 2023
b0d8fb6
Set cleaner debugger
jaydrogers Oct 16, 2023
34b743b
Added docker compose yml default
jaydrogers Oct 16, 2023
547799d
Fixed development logic
jaydrogers Oct 16, 2023
10e4f20
Remove orphans on run
jaydrogers Oct 17, 2023
17a8b90
Fixed logic
jaydrogers Oct 18, 2023
259d882
Improved error handling
jaydrogers Oct 20, 2023
e43ef21
Removed shift from exec
jaydrogers Nov 7, 2023
92cffc7
Support multiple envs
jaydrogers Nov 7, 2023
993d454
Added SPIN_USER_ID and SPIN_GROUP_ID
jaydrogers Nov 7, 2023
fa36023
Added debugging
jaydrogers Nov 7, 2023
20b7308
Renamed to compose file
jaydrogers Nov 8, 2023
62a568e
Added spin ENV
jaydrogers Nov 8, 2023
74b7be1
Added user permissions
jaydrogers Nov 8, 2023
84a43a7
Remove user id
jaydrogers Nov 8, 2023
d92abd8
Fix auto-update and auto-pull functionality
jaydrogers Nov 8, 2023
8128567
Updated header
jaydrogers Nov 30, 2023
8dc63d7
Clear spin cache
jaydrogers Dec 12, 2023
6feee2a
Merge branch 'main' into release/2.0
jaydrogers Dec 12, 2023
3ed0b67
Update title in stop.md file
jaydrogers Dec 12, 2023
fe29794
Update PHP version to beta-8.3-cli
jaydrogers Dec 12, 2023
217dfef
Refactor prune.sh script to improve cache clearing
jaydrogers Dec 12, 2023
eea2faa
Update PHP tag to beta-cli
jaydrogers Dec 12, 2023
d6f85c2
Prevent "new" from checking for a docker compose file
jaydrogers Dec 12, 2023
51f8fcc
Set LOG_LEVEL=off
jaydrogers Dec 12, 2023
c1ea3e4
Remove duplicate LOG_LEVEL environment variable
jaydrogers Dec 12, 2023
d82c247
Updated Windows documentation
jaydrogers Dec 12, 2023
340e1b1
Update SPIN_HOME default value
jaydrogers Dec 13, 2023
7747746
Update BRANCH variable in install.sh script
jaydrogers Dec 13, 2023
36f5d76
Update Spin installation version in setup_spin function
jaydrogers Dec 13, 2023
d9b9a3a
Refactor get_latest_release function to get_install_version
jaydrogers Dec 13, 2023
9698c25
Fix default value for BRANCH variable
jaydrogers Dec 13, 2023
1e42528
Update Spin clone message to include version
jaydrogers Dec 13, 2023
c201fd8
Enable verbose output in install.sh script
jaydrogers Dec 13, 2023
553557f
Fix installation script and return branch version
jaydrogers Dec 13, 2023
0b62c28
Fix typo in install.sh
jaydrogers Dec 13, 2023
9eeb152
Add contributing documentation and installation instructions for Spin
jaydrogers Dec 13, 2023
080694b
Update Spin installation and upgrade scripts with sparse checkout
jaydrogers Dec 13, 2023
123e84d
Add new images and update installation instructions for Spin
jaydrogers Dec 13, 2023
91c6d63
Update Spin installation script URLs
jaydrogers Dec 13, 2023
67d58a1
Refactor Spin installation script to improve performance
jaydrogers Dec 13, 2023
5f1662c
Remove update from Docker check
jaydrogers Dec 13, 2023
f57546b
Update Spin clone command in install.sh
jaydrogers Dec 13, 2023
d5fed01
Remove whitespace
jaydrogers Dec 13, 2023
250ee37
Remove templates
jaydrogers Dec 13, 2023
3801d15
Add init action and check for Docker running
jaydrogers Dec 14, 2023
f86f9d3
Refactor project creation commands
jaydrogers Dec 14, 2023
f92024b
Refactor function name to install_spin_package_to_project()
jaydrogers Dec 14, 2023
496dc2d
Updated Documentation Site to Nuxt 3.8 (#38)
danpastori Dec 14, 2023
5a38e63
Update environment names for marketing site workflows
jaydrogers Dec 14, 2023
0cfa1a8
Test CI
jaydrogers Dec 14, 2023
50a884b
Test CI
jaydrogers Dec 14, 2023
49319cd
Added test
jaydrogers Dec 14, 2023
40f84ce
Removed test
jaydrogers Dec 14, 2023
06a9743
Merge branch 'release/2.0' of github.com:serversideup/spin into relea…
jaydrogers Dec 14, 2023
32f0f5d
Updated code panel
danpastori Dec 14, 2023
aa0e2c8
Added templates
jaydrogers Dec 15, 2023
8cce7de
Working spin new and spin init
jaydrogers Dec 15, 2023
c15c311
Added spin vault
jaydrogers Dec 15, 2023
b7a3a0a
Update default images in spin script
jaydrogers Dec 15, 2023
5aeb89b
Updated variables to be set
jaydrogers Dec 15, 2023
f384d1c
Remove docker name
jaydrogers Dec 15, 2023
a936f92
Remove container name
jaydrogers Dec 15, 2023
88f16ee
Fix password encryption in .spin.example.yml
jaydrogers Dec 15, 2023
2ace274
Fix typo in encryption prompt
jaydrogers Dec 15, 2023
7e6ea13
Refactor spin script to skip compose check for certain commands
jaydrogers Dec 16, 2023
5a33853
Refactor init.sh script and add .spin.inventory.ini file
jaydrogers Dec 16, 2023
02155ca
Add common server configuration and user templates
jaydrogers Dec 16, 2023
0059e16
Refactor template copying and add to .gitignore
jaydrogers Dec 16, 2023
cd3b739
Add .gitignore line in init.sh and copy common files
jaydrogers Dec 16, 2023
a126292
Fix path in docker run command
jaydrogers Dec 18, 2023
609fbad
Organized common template
jaydrogers Dec 18, 2023
dda5933
Refactor vault.sh script to handle local and Docker environments
jaydrogers Dec 19, 2023
05f1458
Refactor vault.sh script and add show_help function
jaydrogers Dec 19, 2023
f7e4689
Add provision command to spin script
jaydrogers Dec 19, 2023
ba41f55
Fix encryption file name in init.sh
jaydrogers Dec 19, 2023
7a29e11
Update .gitignore file to use correct name for vault password file
jaydrogers Dec 19, 2023
05f0a08
Add spin-inventory.ini file with server configurations
jaydrogers Dec 19, 2023
d689da8
Add provision script and run_ansible function
jaydrogers Dec 19, 2023
8289373
Update SPIN_ANSIBLE_IMAGE to use Ubuntu instead of Alpine
jaydrogers Dec 19, 2023
d737907
Add .gitignore file to spin collections
jaydrogers Dec 19, 2023
9f810cd
Update vault_run_command in vault.sh
jaydrogers Dec 19, 2023
9d1bb52
Add 'vault' command to the list of allowed commands
jaydrogers Dec 19, 2023
824dd00
Updated inventory template
jaydrogers Dec 19, 2023
e2a4389
Refactor encryption check and provision script
jaydrogers Dec 19, 2023
2ce5efe
Add default config and inventory files from GitHub
jaydrogers Dec 19, 2023
37c650f
Remove spin inventory and configuration files
jaydrogers Dec 19, 2023
59b8378
Update SPIN_ANSIBLE_IMAGE to version 2.15-alpine-3.18
jaydrogers Dec 20, 2023
867547f
Update runs-on to ubuntu-22.04 in workflows
jaydrogers Dec 20, 2023
8dbee46
Add base64 encoding and decoding functionality
jaydrogers Dec 20, 2023
bc6c3d9
Working templates
jaydrogers Dec 21, 2023
73cf5cc
Remove unnecessary environment variable from run.sh
jaydrogers Dec 21, 2023
c705dab
Fix permission issues in development and set "www-data" user to the s…
jaydrogers Dec 21, 2023
a7c7a31
Add PHP action and default users
jaydrogers Dec 21, 2023
c8a56df
Update Docker user and group settings
jaydrogers Dec 21, 2023
0154a82
Refactor file copying and encryption process
jaydrogers Dec 21, 2023
58a92b7
Add support for linux/amd64 platform in Docker run command
jaydrogers Dec 21, 2023
a0988cb
Add .dockerignore.lineinfile template file
jaydrogers Dec 21, 2023
5975b08
Refactored init script
jaydrogers Dec 21, 2023
6d2f2c3
Fix grep command in init.sh to suppress error output
jaydrogers Dec 21, 2023
a0379ac
Add .infrastructure to .dockerignore
jaydrogers Dec 21, 2023
b52f701
Fix permission issues in development by setting the "www-data" user t…
jaydrogers Dec 21, 2023
9f27185
Update user and group IDs in Docker commands
jaydrogers Dec 21, 2023
8e36793
Add support for GitHub Action templates and update Docker image refer…
jaydrogers Dec 21, 2023
60a0c89
Remove unnecessary comment in install_spin_package_to_project function
jaydrogers Dec 21, 2023
ba40cab
Encrypt files with Ansible Vault and ensure ownership
jaydrogers Dec 21, 2023
f958d47
Add support for --version and -v options in spin script
jaydrogers Dec 21, 2023
4124f7d
Fix Docker run command in init.sh
jaydrogers Dec 21, 2023
62d6be2
Refactored main command
jaydrogers Dec 21, 2023
b05c36b
Update Docker volume mount path in init.sh
jaydrogers Dec 26, 2023
b8e6c3f
Add support for remote user argument in provision script
jaydrogers Dec 27, 2023
d504b26
Update Dockerfile to handle dynamic group ID
jaydrogers Dec 27, 2023
55b6da6
Set to user mod
jaydrogers Dec 27, 2023
88e2742
Added docker-php-serversideup-set-id
jaydrogers Dec 28, 2023
24d7fe2
Update shell type in install and upgrade scripts
jaydrogers Dec 29, 2023
15eb62c
Update SPIN_HOME path in install.sh
jaydrogers Dec 29, 2023
55df30e
Fix SPIN_HOME variable in install.sh
jaydrogers Dec 29, 2023
cdccf15
Update install.sh script to use bash instead of sh
jaydrogers Dec 29, 2023
2841cfb
Update shell environment output in install.sh
jaydrogers Dec 29, 2023
3a09551
Update index and installation documentation
jaydrogers Dec 29, 2023
3945355
Update installation instructions for Spin on Windows and Linux
jaydrogers Dec 29, 2023
7a1e93c
Update PATH configuration for Spin installation
jaydrogers Dec 29, 2023
fd39f16
Refactor template file path handling in init.sh
jaydrogers Dec 29, 2023
d0d8d12
Update installation instructions for Composer and NPM/Yarn
jaydrogers Jan 3, 2024
ee4ec5e
Added YouTube video
jaydrogers Jan 3, 2024
1c5274e
Removed "php" command
jaydrogers Jan 3, 2024
95bdf3a
Add options to run latest stable versions of PHP and Node
jaydrogers Jan 3, 2024
eabd9b0
Updated formatting of code reference
jaydrogers Jan 3, 2024
83958cc
Add base64 command reference to documentation
jaydrogers Jan 3, 2024
7d66c34
Add spin vault command reference to documentation
jaydrogers Jan 3, 2024
dd72117
Update vault command documentation
jaydrogers Jan 3, 2024
eddb422
Update docker run command to include user ID and group ID
jaydrogers Jan 3, 2024
2646e33
Updated Readme
jaydrogers Jan 3, 2024
946952f
Docs WIP
jaydrogers Jan 3, 2024
b339f9f
Create new Landing page for Spin (#40)
jaydrogers Jan 3, 2024
9e7a537
Added full size image
jaydrogers Jan 3, 2024
599a19f
Responsive image component added
danpastori Jan 3, 2024
bc79791
Changed text color Ref #42
danpastori Jan 3, 2024
7c8c638
Updated README
jaydrogers Jan 3, 2024
e298eca
Added code of conduct and changed images
jaydrogers Jan 3, 2024
51fa728
Updated OG image
jaydrogers Jan 3, 2024
e4a5a86
Merge branch 'release/2.0' of github.com:serversideup/spin into relea…
jaydrogers Jan 3, 2024
a187254
Fixed links
jaydrogers Jan 3, 2024
391222d
Added GitHub link
jaydrogers Jan 3, 2024
35cecff
Added GIthub
jaydrogers Jan 3, 2024
55ffebe
Added more detail
jaydrogers Jan 3, 2024
725d962
Set proper versions for deployment
jaydrogers Jan 3, 2024
06915ce
Added detail how Spin works
jaydrogers Jan 3, 2024
d4cefb5
Added pre-requisites
jaydrogers Jan 3, 2024
d20a953
Added help menu
jaydrogers Jan 3, 2024
01c501d
Added requirements
jaydrogers Jan 3, 2024
ffbcd1a
Added demo
jaydrogers Jan 3, 2024
d8eb6c8
Added Dockerfile support
jaydrogers Jan 3, 2024
ced83ad
Added common services
jaydrogers Jan 3, 2024
f48094a
Adde ini
jaydrogers Jan 3, 2024
0f7d2f2
Added guides for generating assets
jaydrogers Jan 3, 2024
4f52cf3
Added server config documentation
jaydrogers Jan 4, 2024
7ed208b
Moved order
jaydrogers Jan 4, 2024
1553104
Mvoed
jaydrogers Jan 4, 2024
f2ed0f5
Added GitHub Actions docs
jaydrogers Jan 4, 2024
8cfbd9c
Added docs
jaydrogers Jan 4, 2024
3705cbf
Fixed init
jaydrogers Jan 4, 2024
92273bd
Added existing project documentation
jaydrogers Jan 4, 2024
592e7f8
Add contributing guidelines
jaydrogers Jan 4, 2024
2822a4a
Added main content
jaydrogers Jan 4, 2024
6c1c955
Update link to mkpasswd in .spin.yml
jaydrogers Jan 4, 2024
b211560
Add latest for Spin
jaydrogers Jan 4, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
134 changes: 134 additions & 0 deletions .github/code_of_conduct.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,134 @@

# Contributor Covenant Code of Conduct

## Our Pledge

We as members, contributors, and leaders pledge to make participation in our
community a harassment-free experience for everyone, regardless of age, body
size, visible or invisible disability, ethnicity, sex characteristics, gender
identity and expression, level of experience, education, socio-economic status,
nationality, personal appearance, race, caste, color, religion, or sexual
identity and orientation.

We pledge to act and interact in ways that contribute to an open, welcoming,
diverse, inclusive, and healthy community.

## Our Standards

Examples of behavior that contributes to a positive environment for our
community include:

* Demonstrating empathy and kindness toward other people
* Being respectful of differing opinions, viewpoints, and experiences
* Giving and gracefully accepting constructive feedback
* Accepting responsibility and apologizing to those affected by our mistakes,
and learning from the experience
* Focusing on what is best not just for us as individuals, but for the overall
community

Examples of unacceptable behavior include:

* The use of sexualized language or imagery, and sexual attention or advances of
any kind
* Trolling, insulting or derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or email address,
without their explicit permission
* Other conduct which could reasonably be considered inappropriate in a
professional setting

## Enforcement Responsibilities

Community leaders are responsible for clarifying and enforcing our standards of
acceptable behavior and will take appropriate and fair corrective action in
response to any behavior that they deem inappropriate, threatening, offensive,
or harmful.

Community leaders have the right and responsibility to remove, edit, or reject
comments, commits, code, wiki edits, issues, and other contributions that are
not aligned to this Code of Conduct, and will communicate reasons for moderation
decisions when appropriate.

## Scope

This Code of Conduct applies within all community spaces, and also applies when
an individual is officially representing the community in public spaces.
Examples of representing our community include using an official e-mail address,
posting via an official social media account, or acting as an appointed
representative at an online or offline event.

## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported to the community leaders responsible for enforcement at
[INSERT CONTACT METHOD].
All complaints will be reviewed and investigated promptly and fairly.

All community leaders are obligated to respect the privacy and security of the
reporter of any incident.

## Enforcement Guidelines

Community leaders will follow these Community Impact Guidelines in determining
the consequences for any action they deem in violation of this Code of Conduct:

### 1. Correction

**Community Impact**: Use of inappropriate language or other behavior deemed
unprofessional or unwelcome in the community.

**Consequence**: A private, written warning from community leaders, providing
clarity around the nature of the violation and an explanation of why the
behavior was inappropriate. A public apology may be requested.

### 2. Warning

**Community Impact**: A violation through a single incident or series of
actions.

**Consequence**: A warning with consequences for continued behavior. No
interaction with the people involved, including unsolicited interaction with
those enforcing the Code of Conduct, for a specified period of time. This
includes avoiding interactions in community spaces as well as external channels
like social media. Violating these terms may lead to a temporary or permanent
ban.

### 3. Temporary Ban

**Community Impact**: A serious violation of community standards, including
sustained inappropriate behavior.

**Consequence**: A temporary ban from any sort of interaction or public
communication with the community for a specified period of time. No public or
private interaction with the people involved, including unsolicited interaction
with those enforcing the Code of Conduct, is allowed during this period.
Violating these terms may lead to a permanent ban.

### 4. Permanent Ban

**Community Impact**: Demonstrating a pattern of violation of community
standards, including sustained inappropriate behavior, harassment of an
individual, or aggression toward or disparagement of classes of individuals.

**Consequence**: A permanent ban from any sort of public interaction within the
community.

## Attribution

This Code of Conduct is adapted from the [Contributor Covenant][homepage],
version 2.1, available at
[https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].

Community Impact Guidelines were inspired by
[Mozilla's code of conduct enforcement ladder][Mozilla CoC].

For answers to common questions about this code of conduct, see the FAQ at
[https://www.contributor-covenant.org/faq][FAQ]. Translations are available at
[https://www.contributor-covenant.org/translations][translations].

[homepage]: https://www.contributor-covenant.org
[v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
[Mozilla CoC]: https://github.com/mozilla/diversity
[FAQ]: https://www.contributor-covenant.org/faq
[translations]: https://www.contributor-covenant.org/translations

Binary file modified .github/header.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .github/spin-diagram.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions .github/workflows/action_marketing-site-preview.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Site Deployment - Preview πŸ‘¨β€πŸ”¬

on:
pull_request:
types: [opened, synchronize, reopened]
paths:
- docs/**

jobs:
publish-preview-site:
uses: ./.github/workflows/service_deploy-static-site.yml
secrets: inherit
with:
environment-name: 'ssu-spin (Preview)'
14 changes: 14 additions & 0 deletions .github/workflows/action_marketing-site-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Site Deployment - Production πŸš€
on:
push:
branches:
- main
paths:
- docs/**

jobs:
publish-production-site:
secrets: inherit
uses: ./.github/workflows/service_deploy-static-site.yml
with:
environment-name: 'ssu-spin (Production)'
30 changes: 6 additions & 24 deletions .github/workflows/publish-prerelease.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,13 @@
name: publish-beta

on:
workflow_dispatch:
release:
types: [prereleased]

jobs:
publish:
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ubuntu-latest]
node: [16]
fail-fast: true

steps:
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
registry-url: https://registry.npmjs.org/

- name: checkout
uses: actions/checkout@v2

- name: Publish BETA build
run: npm publish --access public --tag beta
env:
NODE_AUTH_TOKEN: ${{secrets.NODE_AUTH_TOKEN_SECRET}}

publish-prerelease:
uses: ./.github/workflows/service_publish-node-package.yml
with:
release-tag: beta
secrets: inherit
30 changes: 6 additions & 24 deletions .github/workflows/publish-stable-release.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,13 @@
name: publish-stable

on:
workflow_dispatch:
release:
types: [released]

jobs:
publish:
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ubuntu-latest]
node: [16]
fail-fast: true

steps:
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
registry-url: https://registry.npmjs.org/

- name: checkout
uses: actions/checkout@v2

- name: Publish STABLE build
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NODE_AUTH_TOKEN_SECRET}}

publish-stable-release:
uses: ./.github/workflows/service_publish-node-package.yml
with:
release-tag: latest
secrets: inherit
48 changes: 48 additions & 0 deletions .github/workflows/service_deploy-static-site.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
on:
workflow_call:
inputs:
environment-name:
required: true
type: string

jobs:
deploy-static-site:
runs-on: ubuntu-22.04
permissions:
contents: read
deployments: write
environment:
name: ${{ inputs.environment-name }}
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version-file: './docs/.nvmrc'

- name: Set env file
run: |
if [[ -z "$BASE_64_SECRET" ]]; then
echo '🚨🚨🚨 ENV File not set 🚨🚨🚨' 1>&2
exit 1
fi
echo $BASE_64_SECRET | base64 -d > .env
working-directory: ./docs
env:
BASE_64_SECRET: ${{ secrets.ENV_FILE_BASE64 }}

- run: |
yarn install --frozen-lockfile
yarn build
npx nuxi generate
working-directory: ./docs

- name: Publish to Cloudflare Pages
uses: cloudflare/pages-action@v1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: ssu-spin
directory: docs/.output/public
branch: ${{ github.head_ref || github.ref_name }}
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
36 changes: 36 additions & 0 deletions .github/workflows/service_publish-node-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
on:
workflow_call:
inputs:
runs-on:
required: false
type: string
default: 'ubuntu-22.04'
node-version:
required: false
type: string
default: '18'
release-tag:
required: true
type: string

jobs:
publish:
runs-on: ${{ inputs.runs-on }}

steps:
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ inputs.node-version }}
registry-url: https://registry.npmjs.org/

- name: checkout
uses: actions/checkout@v4

- name: Set NPM version (${{ github.ref_name }}).
run: npm version --git-tag-version=false --commit-hooks=false ${{ github.ref_name }}

- name: Publish release (${{ inputs.release-tag }})
run: npm publish --access public --tag ${{ inputs.release-tag }}
env:
NODE_AUTH_TOKEN: ${{secrets.NODE_AUTH_TOKEN_SECRET}}
2 changes: 1 addition & 1 deletion .github/workflows/sponsors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
- cron: 30 15 * * 0-6
jobs:
deploy:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- name: Checkout πŸ›ŽοΈ
uses: actions/checkout@v2
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/vendor/
/node_modules/
/node_modules/
.env*
7 changes: 6 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
tools/
conf/
conf/
cache/
docs/
.env*
.github/
tools/
Loading