Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
61011069
Unverified
Commit
61011069
authored
Jun 02, 2023
by
Carlo Sala
Committed by
GitHub
Jun 02, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(install): deploy installer to install.ohmyz.sh (#11722)
Co-authored-by:
Marc Cornellà
<
hello@mcornella.com
>
parent
00241073
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
72 additions
and
2 deletions
+72
-2
installer.yml
.github/workflows/installer.yml
+55
-0
.gitignore
.github/workflows/installer/.gitignore
+1
-0
.vercelignore
.github/workflows/installer/.vercelignore
+2
-0
vercel.json
.github/workflows/installer/vercel.json
+14
-0
main.yml
.github/workflows/main.yml
+0
-2
No files found.
.github/workflows/installer.yml
0 → 100644
View file @
61011069
name
:
Test and Deploy installer
on
:
workflow_dispatch
:
{}
push
:
paths
:
-
tools/install.sh
-
.github/workflows/installer
-
.github/workflows/installer.yml
concurrency
:
group
:
${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress
:
false
permissions
:
contents
:
read
# to checkout
jobs
:
test
:
name
:
Test installer
runs-on
:
${{ matrix.os }}
strategy
:
matrix
:
os
:
-
ubuntu-latest
-
macos-latest
steps
:
-
name
:
Set up git repository
uses
:
actions/checkout@v3
-
name
:
Install zsh
if
:
runner.os == 'Linux'
run
:
sudo apt-get update; sudo apt-get install zsh
-
name
:
Test installer
run
:
sh ./tools/install.sh
deploy
:
name
:
Deploy installer in install.ohmyz.sh
if
:
github.ref == 'refs/heads/master'
runs-on
:
ubuntu-latest
environment
:
vercel
needs
:
-
test
steps
:
-
name
:
Checkout
uses
:
actions/checkout@v3
-
name
:
Install Vercel CLI
run
:
npm install -g vercel
-
name
:
Setup project and deploy
env
:
VERCEL_ORG_ID
:
${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID
:
${{ secrets.VERCEL_PROJECT_ID }}
run
:
|
cp tools/install.sh .github/workflows/installer/install.sh
cd .github/workflows/installer
vc link --yes -t ${{ secrets.VERCEL_TOKEN }}
vc deploy --prod -t ${{ secrets.VERCEL_TOKEN }}
.github/workflows/installer/.gitignore
0 → 100644
View file @
61011069
install.sh
.github/workflows/installer/.vercelignore
0 → 100644
View file @
61011069
/*
!/install.sh
.github/workflows/installer/vercel.json
0 → 100644
View file @
61011069
{
"headers"
:
[
{
"source"
:
"/((?!favicon.ico).*)"
,
"headers"
:
[{
"key"
:
"Content-Type"
,
"value"
:
"text/plain"
}]
}
],
"rewrites"
:
[
{
"source"
:
"/((?!favicon.ico|install.sh).*)"
,
"destination"
:
"/install.sh"
}
]
}
.github/workflows/main.yml
View file @
61011069
...
...
@@ -31,8 +31,6 @@ jobs:
-
name
:
Install zsh
if
:
runner.os == 'Linux'
run
:
sudo apt-get update; sudo apt-get install zsh
-
name
:
Test installer
run
:
sh ./tools/install.sh
-
name
:
Check syntax
run
:
|
for file in ./oh-my-zsh.sh \
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment