1
0
Fork 1
mirror of https://github.com/zen-browser/desktop.git synced 2025-07-08 01:19:59 +02:00

Refactor build workflow and add branch validation

This commit is contained in:
mr. M 2024-10-11 18:30:32 +02:00
parent a01a6d0f43
commit 69020cc516
No known key found for this signature in database
GPG key ID: CBD57A2AEDBDA1FB
5 changed files with 84 additions and 16 deletions

View file

@ -54,12 +54,52 @@ jobs:
echo "GITHUB_REPOSITORY_OWNER: ${{ github.repository_owner }}" echo "GITHUB_REPOSITORY_OWNER: ${{ github.repository_owner }}"
echo "GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}" echo "GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}"
check-build-is-correct:
runs-on: ubuntu-latest
needs: [debug-inputs]
steps:
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 20
- uses: actions/checkout@v4
with:
submodules: recursive
token: ${{ secrets.DEPLOY_KEY }}
- name: Check if correct branch
run: |
echo "Checking if we are on the correct branch"
git branch
git status
git branch --show-current
if [[ $(git branch --show-current) != ${{ inputs.update_branch }} ]]; then
echo ">>> Branch mismatch"
exit 1
else
echo ">>> Branch matches"
fi
- name: Check if branch is up to date
run: |
echo "Checking if branch is up to date"
git fetch
git pull
git status
if [[ $(git status) == *"Your branch is up to date with"* ]]; then
echo ">>> Branch is up to date"
else
echo ">>> Branch is not up to date"
exit 1
fi
build-data: build-data:
permissions: permissions:
contents: write contents: write
name: Generate build data name: Generate build data
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: debug-inputs needs: check-build-is-correct
outputs: outputs:
build_date: ${{ steps.data.outputs.builddate }} build_date: ${{ steps.data.outputs.builddate }}
version: ${{ steps.data.outputs.version }} version: ${{ steps.data.outputs.version }}

View file

@ -28,6 +28,12 @@ Zen is currently built using firefox version `131.0.2`!
- Check out the latest [release notes](https://zen-browser.app/release-notes)! - Check out the latest [release notes](https://zen-browser.app/release-notes)!
# Contribution
Zen is an open-source project, and we welcome contributions from the community!
- Check out the [contribution guidelines](./docs/contribute.md)!
# Performance # Performance
Zen is built with performance in mind, and we have optimized the browser to be as fast as possible! Zen is built with performance in mind, and we have optimized the browser to be as fast as possible!

18
docs/contribute.md Normal file
View file

@ -0,0 +1,18 @@
# Branch Structure
The repository is structured as follows:
```
main (default branch)
|
├── twilight (beta testing branch)
|
├── alpha (stable branch)
|
└── ... (other branches)
```
You, as a contributor, should create a pull request to the `main` branch. The pull request will be reviewed and merged into the `twilight` branch. After the beta testing phase, the `twilight` branch will be merged into the `stable` branch.
This way, we can push changes to the `stable` branch with quick fixes without having new features that are not tested yet, in case an emergency fix is needed.

@ -1 +1 @@
Subproject commit 3fbe081350c5d1111202f88169eb02184bddcd22 Subproject commit c86b344c1786f3181ef62f8b1d1d19d9b2c2c7dd

View file

@ -6,10 +6,9 @@
position: relative; position: relative;
&:not([as-button='true']) { &:not([as-button='true']) {
--zen-workspaces-strip-background-color: color-mix(in srgb, var(--zen-colors-border) 20%, transparent 80%); --toolbarbutton-hover-background: transparent !important;
--toolbarbutton-hover-background: var(--toolbarbutton-hover-background) !important;
border-radius: var(--zen-button-border-radius) !important; border-radius: var(--zen-button-border-radius) !important;
background: var(--zen-workspaces-strip-background-color) !important; background: transparent;
padding: 5px; padding: 5px;
appearance: unset !important; appearance: unset !important;
height: fit-content; height: fit-content;
@ -28,17 +27,22 @@
opacity: 0.6; opacity: 0.6;
} }
&[active='true']::after { &:not([active='true']) {
content: ''; &::after {
position: absolute; content: '';
width: 4px; position: absolute;
border-radius: 99px; width: 4px;
height: 4px; border-radius: 99px;
background: var(--zen-primary-color); height: 4px;
bottom: -2px; background: color-mix(in srgb, var(--zen-primary-color) 10%, light-dark(#000, #fff) 90%);
left: 50%; left: 50%;
transform: translateX(-50%); top: 50%;
animation: zen-workspaces-button-active 0.1s ease-in-out; transform: translate(-50%, -50%);
}
& .zen-workspace-icon {
display: none;
}
} }
} }
} }