Author SHA1 Message Date
Taso 9b273e2310 fix(ci/cd): Actual final wow 2021-04-01 14:12:37 -04:00
Taso ebbefd1497 fix(ci/cd): Final fix probably, maybe 2021-04-01 14:12:37 -04:00
Taso f0bb41ac5f fix(ci/cd): Github yaml syntax sucks 2021-04-01 14:12:37 -04:00
Taso eaa0c97cde tweaks(ci-cd): Build release changes 2021-04-01 14:12:37 -04:00
Taso c678ab101e Revert "tweak(phone/sentry): enable only in prod"
This reverts commit 1282ba7d40e691a2dd8542c42f6049707bc7e975.
2021-04-01 14:12:37 -04:00
Taso c46c75ebee feat(ci/cd): Automatically create a release on tag change 2021-04-01 14:12:37 -04:00
5 changed files with 107 additions and 66 deletions

No files matched your search

+58
View File
@@ -0,0 +1,58 @@
---
name: "Deploy New Release"
on:
push:
tags:
- v[0-9]+.[0-9]+.[0-9]+
branches:
- ci-cd/build-release
jobs:
deploy-release:
runs-on: "ubuntu-latest"
steps:
- name: Checkout Source
uses: actions/checkout@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Set Env
id: commit_info
run: |
echo "SOURCE_TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
- uses: actions/setup-node@v2
with:
node-version: '14'
- name: Find Yarn Cache Dir
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"
- uses: actions/cache@v2
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install deps for NUI & Game Scripts
run: |
cd phone && yarn --frozen-lockfile
cd ../resources && yarn --frozen-lockfile
- name: Testing NUI & Game Scripts
run: |
cd phone && yarn test
cd ../resources && yarn test
- name: Webpack/build NUI and Game Scripts
run: |
cd resources && yarn build
cd ../phone && yarn build
- name: Compressing built files
run: tar -czf npwd-${{env.SOURCE_TAG}}.tar.gz resources/dist/ resources/html/ fxmanifest.lua config.json LICENSE
- name: Create and deploy GitHub release
if: ${{ !env.ACT }}
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: '${{env.SOURCE_TAG}}'
prerelease: false
title: '${{ env.SOURCE_TAG }} - New Phone Who Dis'
files: npwd-${{env.SOURCE_TAG}}.tar.gz
+46 -44
View File
@@ -1,13 +1,15 @@
# comment this out if your server has a different table/location for phone_number # comment this out if your server has a different table/location for phone_number
# or if it already exists in the users table # or if it already exists in the users table
ALTER TABLE `users` ADD COLUMN `phone_number` VARCHAR(20) DEFAULT NULL; ALTER TABLE `users` ADD COLUMN `phone_number` VARCHAR(20) DEFAULT NULL;
INSERT INTO `items` (`name`, `label`, `weight`, `rare`, `can_remove`) VALUES ('phone', 'Phone', 1, 0, 1);
INSERT INTO `items` (`name`, `label`, `weight`, `rare`, `can_remove`) VALUES ('dphone', 'Destroyed Phone', 1, 0, 1);
CREATE TABLE IF NOT EXISTS `npwd_phone_contacts` ( CREATE TABLE IF NOT EXISTS npwd_phone_contacts (
`id` int(11) NOT NULL AUTO_INCREMENT, id int(11) NOT NULL AUTO_INCREMENT,
`identifier` varchar(48) DEFAULT NULL, identifier varchar(60) DEFAULT NULL,
`avatar` varchar(512) DEFAULT NULL, avatar varchar(512) DEFAULT NULL,
`number` varchar(10) DEFAULT NULL, number varchar(10) DEFAULT NULL,
`display` varchar(60) NOT NULL DEFAULT '', display varchar(60) NOT NULL DEFAULT '',
PRIMARY KEY (id) PRIMARY KEY (id)
); );
@@ -17,7 +19,7 @@ CREATE TABLE IF NOT EXISTS `npwd_twitter_tweets` (
`createdAt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `createdAt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updatedAt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `updatedAt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`likes` int NOT NULL DEFAULT '0', `likes` int NOT NULL DEFAULT '0',
`identifier` varchar(48) NOT NULL, `identifier` varchar(40) NOT NULL,
`visible` tinyint NOT NULL DEFAULT '1', `visible` tinyint NOT NULL DEFAULT '1',
`images` varchar(1000) DEFAULT '', `images` varchar(1000) DEFAULT '',
`retweet` int DEFAULT NULL, `retweet` int DEFAULT NULL,
@@ -28,7 +30,7 @@ CREATE TABLE IF NOT EXISTS `npwd_twitter_tweets` (
CREATE TABLE IF NOT EXISTS `npwd_twitter_profiles` ( CREATE TABLE IF NOT EXISTS `npwd_twitter_profiles` (
`id` int NOT NULL AUTO_INCREMENT, `id` int NOT NULL AUTO_INCREMENT,
`profile_name` varchar(90) NOT NULL, `profile_name` varchar(90) NOT NULL,
`identifier` varchar(48) NOT NULL, `identifier` varchar(40) NOT NULL,
# Default Profile avatar can be set here # Default Profile avatar can be set here
`avatar_url` varchar(255) DEFAULT 'https://beta.iodine.gg/QrEvq.png', `avatar_url` varchar(255) DEFAULT 'https://beta.iodine.gg/QrEvq.png',
`bio` varchar(512) DEFAULT NULL, `bio` varchar(512) DEFAULT NULL,
@@ -54,7 +56,7 @@ CREATE TABLE IF NOT EXISTS `npwd_twitter_likes` (
CREATE TABLE IF NOT EXISTS `npwd_match_profiles` ( CREATE TABLE IF NOT EXISTS `npwd_match_profiles` (
`id` int NOT NULL AUTO_INCREMENT, `id` int NOT NULL AUTO_INCREMENT,
`identifier` varchar(48) NOT NULL, `identifier` varchar(255) NOT NULL,
`name` varchar(90) NOT NULL, `name` varchar(90) NOT NULL,
`image` varchar(255) NOT NULL, `image` varchar(255) NOT NULL,
`bio` varchar(512) DEFAULT NULL, `bio` varchar(512) DEFAULT NULL,
@@ -70,7 +72,7 @@ CREATE TABLE IF NOT EXISTS `npwd_match_profiles` (
CREATE TABLE IF NOT EXISTS `npwd_match_views` ( CREATE TABLE IF NOT EXISTS `npwd_match_views` (
`id` int NOT NULL AUTO_INCREMENT, `id` int NOT NULL AUTO_INCREMENT,
`identifier` varchar(48) NOT NULL, `identifier` varchar(40) NOT NULL,
`profile` int NOT NULL, `profile` int NOT NULL,
`liked` tinyint DEFAULT '0', `liked` tinyint DEFAULT '0',
`createdAt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `createdAt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
@@ -80,32 +82,32 @@ CREATE TABLE IF NOT EXISTS `npwd_match_views` (
CONSTRAINT `match_profile` FOREIGN KEY (`profile`) REFERENCES `npwd_match_profiles` (`id`) CONSTRAINT `match_profile` FOREIGN KEY (`profile`) REFERENCES `npwd_match_profiles` (`id`)
); );
CREATE TABLE IF NOT EXISTS `npwd_notes` ( CREATE TABLE IF NOT EXISTS npwd_notes (
`id` int(11) NOT NULL AUTO_INCREMENT, id int(11) NOT NULL AUTO_INCREMENT,
`identifier` varchar(48) NOT NULL, identifier varchar(255) NOT NULL,
`title` varchar(255) NOT NULL, title varchar(255) NOT NULL,
`content` varchar(255) NOT NULL, content varchar(255) NOT NULL,
PRIMARY KEY (id) PRIMARY KEY (id)
); );
CREATE TABLE IF NOT EXISTS `npwd_marketplace_listings` ( CREATE TABLE IF NOT EXISTS npwd_marketplace_listings (
`id` int(11) NOT NULL AUTO_INCREMENT, id int(11) NOT NULL AUTO_INCREMENT,
`identifier` varchar(48) DEFAULT NULL, identifier varchar(255) DEFAULT NULL,
`username` varchar(255) DEFAULT NULL, username varchar(255) DEFAULT NULL,
`name` varchar(50) DEFAULT NULL, name varchar(50) DEFAULT NULL,
`number` varchar(255) NOT NULL, number varchar(255) NOT NULL,
`title` varchar(255) DEFAULT NULL, title varchar(255) DEFAULT NULL,
`url` varchar(255) DEFAULT NULL, url varchar(255) DEFAULT NULL,
`description` varchar(255) NOT NULL, description varchar(255) NOT NULL,
`createdAt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, createdAt timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updatedAt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, updatedAt timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (id) PRIMARY KEY (id)
); );
CREATE TABLE IF NOT EXISTS `npwd_marketplace_reports` ( CREATE TABLE IF NOT EXISTS npwd_marketplace_reports (
`id` int(11) NOT NULL AUTO_INCREMENT, id int(11) NOT NULL AUTO_INCREMENT,
`listing_id` int(11) DEFAULT NULL, listing_id int(11) DEFAULT NULL,
`profile` varchar(255) DEFAULT NULL, profile varchar(255) DEFAULT NULL,
PRIMARY KEY (id) PRIMARY KEY (id)
); );
@@ -123,11 +125,11 @@ CREATE TABLE IF NOT EXISTS `npwd_twitter_reports` (
CREATE TABLE IF NOT EXISTS `npwd_messages_groups` ( CREATE TABLE IF NOT EXISTS `npwd_messages_groups` (
`id` int NOT NULL AUTO_INCREMENT, `id` int NOT NULL AUTO_INCREMENT,
`user_identifier` varchar(48) NOT NULL, `user_identifier` varchar(40) NOT NULL,
`createdAt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `createdAt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updatedAt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `updatedAt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`group_id` varchar(512) NOT NULL, `group_id` varchar(512) NOT NULL,
`participant_identifier` varchar(48) NOT NULL, `participant_identifier` varchar(40) NOT NULL,
`label` varchar(60) DEFAULT '', `label` varchar(60) DEFAULT '',
`unreadCount` int(11) NOT NULL DEFAULT 0, `unreadCount` int(11) NOT NULL DEFAULT 0,
PRIMARY KEY (`id`) PRIMARY KEY (`id`)
@@ -135,7 +137,7 @@ CREATE TABLE IF NOT EXISTS `npwd_messages_groups` (
CREATE TABLE IF NOT EXISTS `npwd_messages_labels` ( CREATE TABLE IF NOT EXISTS `npwd_messages_labels` (
`id` int NOT NULL AUTO_INCREMENT, `id` int NOT NULL AUTO_INCREMENT,
`user_identifier` varchar(48) NOT NULL, `user_identifier` varchar(40) NOT NULL,
`label` varchar(60) NOT NULL, `label` varchar(60) NOT NULL,
`createdAt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `createdAt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updatedAt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `updatedAt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
@@ -146,7 +148,7 @@ CREATE TABLE IF NOT EXISTS `npwd_messages_labels` (
CREATE TABLE IF NOT EXISTS `npwd_messages` ( CREATE TABLE IF NOT EXISTS `npwd_messages` (
`id` int NOT NULL AUTO_INCREMENT, `id` int NOT NULL AUTO_INCREMENT,
`message` varchar(512) NOT NULL, `message` varchar(512) NOT NULL,
`user_identifier` varchar(48) NOT NULL, `user_identifier` varchar(40) NOT NULL,
`group_id` varchar(512) NOT NULL, `group_id` varchar(512) NOT NULL,
`isRead` tinyint NOT NULL DEFAULT '0', `isRead` tinyint NOT NULL DEFAULT '0',
`createdAt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `createdAt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
@@ -155,20 +157,20 @@ CREATE TABLE IF NOT EXISTS `npwd_messages` (
PRIMARY KEY (`id`) PRIMARY KEY (`id`)
); );
CREATE TABLE IF NOT EXISTS `npwd_calls` ( CREATE TABLE IF NOT EXISTS npwd_calls (
`id` int(11) NOT NULL AUTO_INCREMENT, id int(11) NOT NULL AUTO_INCREMENT,
`identifier` varchar(48) DEFAULT NULL, identifier varchar(255) DEFAULT NULL,
`transmitter` varchar(255) NOT NULL, transmitter varchar(255) NOT NULL,
`receiver` varchar(255) NOT NULL, receiver varchar(255) NOT NULL,
`is_accepted` tinyint(4) DEFAULT 0, is_accepted tinyint(4) DEFAULT 0,
`start` varchar(255) DEFAULT NULL, start varchar(255) DEFAULT NULL,
end varchar(255) DEFAULT NULL, end varchar(255) DEFAULT NULL,
PRIMARY KEY (id) PRIMARY KEY (id)
); );
CREATE TABLE IF NOT EXISTS npwd_phone_gallery ( CREATE TABLE IF NOT EXISTS npwd_phone_gallery (
`id` int(11) NOT NULL AUTO_INCREMENT, id int(11) NOT NULL AUTO_INCREMENT,
`identifier` varchar(48) DEFAULT NULL, identifier varchar(255) DEFAULT NULL,
`image` varchar(255) DEFAULT NULL, image varchar(255) DEFAULT NULL,
PRIMARY KEY (id) PRIMARY KEY (id)
); );
-4
View File
@@ -191,10 +191,6 @@
{ {
"label": "Default Light", "label": "Default Light",
"value": "default-light" "value": "default-light"
},
{
"label": "Kiddo Dark",
"value": "kiddo-dark"
} }
], ],
"debug": { "debug": {
+1 -16
View File
@@ -34,20 +34,5 @@
} }
}, },
"divider": "rgba(255, 255, 255, 0.12)" "divider": "rgba(255, 255, 255, 0.12)"
},
"kiddo-dark": {
"palette": {
"type": "dark",
"primary": {
"main": "#EBFEF3"
},
"secondary": {
"main": "#5E0035"
},
"background": {
"default": "#033A18",
"paper": "#011308"
}
}
} }
} }
+2 -2
View File
@@ -16,8 +16,8 @@ import updateLocale from 'dayjs/plugin/updateLocale';
dayjs.extend(relativeTime); dayjs.extend(relativeTime);
dayjs.extend(updateLocale); dayjs.extend(updateLocale);
// Enable Sentry when config setting is true and when in prod // Enable Sentry when config setting is true
if (PhoneConfig.SentryErrorMetrics && process.env.NODE_ENV !== 'development') { if (PhoneConfig.SentryErrorMetrics) {
Sentry.init({ Sentry.init({
dsn: 'https://[email protected]/5581619', dsn: 'https://[email protected]/5581619',
autoSessionTracking: true, autoSessionTracking: true,