Skip to content

Commit 3e7106f

Browse files
authored
Release new example to production (#6)
* Update azure-pipelines.yml for Azure Pipelines (#3) * Create Standalone build example (#5) * Update README * Update azure-pipelines.yml for Azure Pipelines (#3) (#4) * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Add htaccess file for https redirect * Add GA * Create first standalone example
1 parent 78845d2 commit 3e7106f

File tree

5 files changed

+79
-7
lines changed

5 files changed

+79
-7
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[![Documentation](./static/img/page-preview.png)](https://www.unitydevops.com)
44

5-
This repository contains the documentation website for [Unity Tools for Azure DevOps](https://marketplace.visualstudio.com/items?itemName=DinomiteStudios.64e90d50-a9c0-11e8-a356-d3eab7857116). A collection of tools and tasks for working with Unity based projects. The website is built using [Docusaurus 2](https://v2.docusaurus.io/), a modern static website generator.
5+
This repository contains the documentation website for [Unity Tools for Azure DevOps](https://marketplace.visualstudio.com/items?itemName=DinomiteStudios.64e90d50-a9c0-11e8-a356-d3eab7857116). A collection of tools and tasks for working with Unity based projects on Azure DevOps. The website is built using [Docusaurus 2](https://v2.docusaurus.io/), a modern static website generator.
66

77
## Branches
88

docs/example-standalone-0.md

Lines changed: 68 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,73 @@ id: example-standalone-0
33
title: Standalone Build And Upload
44
---
55

6-
This pipeline example will build a Unity application targeting the Standalone platform and then proceed to upload the exported files from the agent to the Azure DevOps storage, so they can be deployed or distributed as needed in subsequent operations, such as a continuous deployment pipeline.
6+
This pipeline example will build a Unity application targeting the Standalone platform and then proceed to upload the exported files from the agent to the Azure DevOps storage, so they can be deployed or distributed as needed in subsequent operations, such as a CD pipeline.
77

8-
## At a glance
8+
## Overview
99

10-
**Target Platform:** Standalone
10+
**Target Platform:**
11+
12+
- Standalone (Windows)
13+
14+
**Used Tasks:**
15+
16+
- Unity Activate License
17+
- Unity Build
18+
19+
**Agent:**
20+
21+
- Custom Agent with Unity preinstalled
22+
23+
## YAML
24+
25+
```yaml
26+
# Trigger the pipeline to run whenever a commit to the main branch is made.
27+
trigger:
28+
- main
29+
30+
# Use a custom agent pool called "Unity Windows" that manages custom agents
31+
# that have the required Unity versions installed and any required SDKs for target platforms
32+
# configured.
33+
pool:
34+
name: 'Unity Windows'
35+
36+
# Adds a pipeline variables library to the pipeline that contains
37+
# authentication variables for activating a Unity editor with a Unity Plus / Pro seat.
38+
variables:
39+
- group: 'unity-activation-variables'
40+
41+
steps:
42+
# Before we build we activate a Unity Plus/Pro seat on the agent, only for the duration
43+
# of the pipeline execution. That way we can e.g. get rid of the Unity splash screen in our build.
44+
- task: UnityActivateLicenseTask@1
45+
name: 'unityactivation'
46+
inputs:
47+
username: '$(unity.username)'
48+
password: '$(unity.password)'
49+
serial: '$(unity.serial)'
50+
51+
# Build the Unity project to standalone. Since we are running on a Windows agent, this will produce
52+
# an .exe executable and any dependency files needed.
53+
- task: UnityBuildTask@3
54+
inputs:
55+
buildTarget: 'standalone'
56+
outputPath: '$(Build.BinariesDirectory)'
57+
outputFileName: 'mygame'
58+
59+
# Copy build output files to artifact staging directory.
60+
- task: CopyFiles@2
61+
inputs:
62+
SourceFolder: '$(Build.BinariesDirectory)'
63+
Contents: '**'
64+
TargetFolder: '$(Build.ArtifactStagingDirectory)'
65+
CleanTargetFolder: true
66+
OverWrite: true
67+
68+
# Finally publish all items in artifact staging to the Azure Pipelines
69+
# artifact storage. They will be available for sharing and/or further processing there.
70+
- task: PublishBuildArtifacts@1
71+
inputs:
72+
PathtoPublish: '$(Build.ArtifactStagingDirectory)'
73+
ArtifactName: 'drop'
74+
publishLocation: 'Container'
75+
```

docs/features.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ id: features
33
title: Features Overview
44
---
55

6-
Once `Unity Tools for Azure DevOps` has been installed to your organization, you'll have access to a set of
6+
Once Unity Tools for Azure DevOps has been installed to your organization, you'll have access to a set of
77
build and release tasks for Unity related operations. The extension provides the following tasks for use in your pipelines:
88

99
Please check each tasks documentation page and for examples on how to use them. Also make sure to checkout our [Examples](./examples.md) collection with useful pipeline definitions you can copy-paste and adjust to your needs.

docusaurus.config.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
11
module.exports = {
22
title: 'Unity Tools for Azure DevOps',
33
tagline: 'Set up CI/CD for Unity projects powered by Azure Pipelines',
4-
url: 'https://your-docusaurus-test-site.com',
4+
url: 'https://www.unitydevops.com',
55
baseUrl: '/',
66
onBrokenLinks: 'throw',
77
onBrokenMarkdownLinks: 'warn',
88
favicon: 'img/favicon.ico',
99
organizationName: 'Dinomite-Studios',
10-
projectName: 'unity-azure-pipelines-tasks',
10+
projectName: 'unity-azure-pipelines-tasks-docs',
1111
themeConfig: {
12+
googleAnalytics: {
13+
trackingID: 'G-W9FFRR7HX3',
14+
anonymizeIP: true
15+
},
1216
navbar: {
1317
title: 'Unity Tools for Azure DevOps',
1418
logo: {

static/.htaccess

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
RewriteEngine On
2+
RewriteCond %{HTTPS} !=on
3+
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

0 commit comments

Comments
 (0)